2 ms·
Server-Sent Events have quicker handshake, send events down just as fast as WebSockets, and automatically reconnect (so works like WebSocket on stable connectio
by pornel 12y ago
Server-Sent Events have quicker handshake, send events down just as fast as WebSockets, and automatically reconnect (so works like WebSocket on stable connection, long polling on unstable).
- swah 12y agoYou're probably asnwering my other comment? Thanks for the info anyway.
- mzs 12y agoSSE also works across all proxies, which even if you are on a stable connection you might have a transparent proxy that borks websockets, so that's at least one reason to prefer SSE over websockets on a stable connection. A work around then is to use wss: instead.