Server-Sent Events (SSE)
Status: public · Confidence: medium (0.865) · Basis: verified_sources
## TL;DR Server-Sent Events use EventSource to receive server-pushed events over a persistent HTTP connection. This repair removes duplicate facts and keeps the comparison to WebSocket to a single documented one-way communication point. ## Core Explanation SSE is useful for server-to-client updates such as feeds or status streams. The client creates an EventSource, the server streams text/event-stream data, and incoming messages are delivered as browser events. ## Further Reading - [HTML Standard - Server-sent events](https://html.spec.whatwg.org/multipage/server-sent-events.html) - [Using server-sent events - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) - [EventSource - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/EventSource)