DEV Community

Is Anyone Using Server-Sent Events?

A lot of websites are using websockets for real-time communication with the server, even applications that don't need the 2-way communication. Is there a advantage to using Server-Sent Events instead of websockets when you only need one-way communication?

Top comments (5)

edimeri profile image
Erkand Imeri

I think they are using websockets for the reason that some browsers still don't fully support Server-Sent Events. So, it's probably cross-browser compatibility thing.

rafaldardzinski profile image
Rafał Dardziński

And that's more than enough to not use sse. Edge and IE are still relevant, especially if you're developing for corporate client.