Menu
Back to Discussions

WebSockets versus Server-Sent Events for real-time updates? dont know which is better.

Urmila Devi
Urmila Devi
·10992 views
Hey everyone, I'm trying to figure out the best way to handle real-time updates, like live scores or notifications, where the server needs to push info to clients often. I've been checking out WebSockets and Server-Sent Events (SSE). WebSockets are great because you can send data back and forth, but SSE seems a bit easier if it's just the server sending stuff to the client. Plus, SSE even sorts out reconnections by itself. What's your take on when to use one over the other, especially when you have tons of people connected at once?
35 comments

Comments

Loading comments...