Server Sent Events - kimschles/schlesinger-knowledge GitHub Wiki
Server Sent Events (SSE)
Brandon Barrett DenverScript, June 16, 2018
- Well defined, long loved connection over http(s) ish
- Neslted between websockets and web requesting
- Examples: long polling and other retry techniques
Server sent events are like Websockets because...
- Stays open
- gives updates automatically
- a lightweight approach to broadcasting to clients
Unlike Websockets because...
- You can't push messages back upstream
- Don't have much support
How They Work
- ?
Pros
- Easy to implement a handshake (no separate server!)
- No firewall dance because they're
HTTP
- Enforce regularity
- Don't require a socket server
- Can be a progressive upgrade