DEV Community

Discussion on: Building with server-sent events with React and Node.js

Collapse
 
gandalfarcade profile image
Chris Mumford

Excellent post! This is the first time I've heard of SSE. I don't know how I haven't come across this before. WebSockets are my usual go to for this sort of operation, however, if the client does not need to send any messages back to the server, then it seems SSE is the obvious choice. The automatic reconnection is very cool 😍.

The only thing that I can see that may be a problem is the browser compatibility of SSE vs WebSockets (but I guess polyfills are there to be used).

Collapse
 
4shub profile image
Shubham Naik

Thank you!

As for support, when building a production application, you should look into this polyfill:
github.com/Yaffle/EventSource