real-time collaboration: WebSockets versus Server-Sent Events, what's the deal
Leyla Bekmirza
·14921 views
Hey everyone, I'm building a new feature that needs to update lots of clients at once, kind of like Google Docs. I'm trying to figure out if WebSockets or Server-Sent Events (SSE) would be better. WebSockets feel like they offer more options since they're two-way, but SSE could be easier if we just need the server to send stuff out. What have you guys found? When did one clearly work better than the other for stuff like real-time teamwork or similar apps? Are there any performance or setup snags I should really watch out for?
29 comments