DEV Community

3 1

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

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.

Cloudinary image

Video API: manage, encode, and optimize for any device, channel or network condition. Deliver branded video experiences in minutes and get deep engagement insights.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay