-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Server-Sent Events (SSE) #87
Comments
I'm not very up-to-date with this. This would function as a replacement for websockets, right?
You mean this doesn't work with something that happened with 3.x (as in: it did work with 2.x)?
You mean you currently need the first 3 lines to stop the websocket? In that case, it is connected to my first question I guess? |
Actually, I'm preparing the pull request for this. As a LiveReload user, you can choose between WebSockets and EventSource (SSE). WebSockets will be default choice. From my point of view WebSocket is just a transport to send
Not sure about problem in minified version, but I've fixed issue with 3.0.1 in #88
With my patch, |
I'm not fully comprehending what the issues with the minified version are, but if you can/could solve them: awesome. The idea of multiple transports sounds nice! Looking forward to your PR! Thanks! |
For our project we would like to use SSE. Currently, code to activate SSE for LiveReload 3.0.0 is quite simple:
Unfortunately, this not works with minified version nor version 3.0.1. I would like to make it works without
LiveReload.connector.disconnect()
if that's fine for youThe text was updated successfully, but these errors were encountered: