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 (2)

Collapse
 
erimeri 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.

OSZAR »
Collapse
 
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.

OSZAR »
OSZAR »