web sockets or server-sent events for real-time updates
Xiao Liang
·13036 views
we're building a dashboard that needs to show live data updates to lots of users at the same time. the main thing is pushing real-time info from the server to the client without the client always asking if there's anything new. i'm thinking WebSockets because it can go both ways, but Server-Sent Events (SSE) look easier for just sending stuff one way. has anyone else been in this spot? what did you think about the most? did you go with WebSockets or SSE, and why? what were the downsides you ran into once it was live
28 comments