-
Notifications
You must be signed in to change notification settings - Fork 7.6k
feat(esp32): Server Side Events (SSE) #5373
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
Conversation
@Rotzbua SSE is the easiest and simplest way to achieve a kind of websockets |
I miss an explicit reason for the SSE feature because websockets are already available. SSE also has limitations e.g. a connection limit with http1x or some firewalls block the connection. |
Totally agree with you that websockets are more powerful and better option in some scenarios. Also WebSockets are undoubtedly more complex and demanding than SSEs ref and more extensive comparative. It can be overkill for some types of application, and the backend could be easier to implement with a protocol such as SSE ref and more extensive comparative. That was the point for me, I was looking for a fast way to send events from esp32 to the browser without implementing all the requirements to achieve WS. In my particular case, I think that I can implement SSE really fast but WS are more tricky and I'm not really sure if I could implement that fast. Also this pull request is adding SSE feature, not replacing websockets feature. The fact that there are websockets available does not mean that other features like SSE might be unsupported or removed. Many browsers do support both websockets and SSE, among other features that are alternatives one each other like long polling. At the end, the developers are the ones who should choose the best option for their code and the more functionalities they have on the table, the better choice can be done. I don't see a reason for not to add this feature when there are benefits doing so.
I couldn't find the documentation for |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I still don't see a reason for not to add this feature when there are benefits doing so. |
Any updates on this? Would be really useful if this changes could be merged |
Working as expected but needs to be updated to the newest master. @miqmago Would you be able to do this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, just fix what is requested.
Co-authored-by: Lucas Saavedra Vaz <[email protected]>
👋 Hello miqmago, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
@miqmago Something is wrong in the Merge commit. Please fix it or enable the option that maintainers can edit the PR. |
Closing in favor of #9222 |
@lucasssvaz yes, something went really wrong while doing a pull from master and trying to squash commits... There were so many changes as this PR is 3 years old... Not sure if the close of the PR is because changes will be integrated on other place or is better to open new PR with changes on fresh branch... |
Tested in Chrome
This way we can leave connection opened and send SSE events like this:
main.ino