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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay