Server-Sent Events
E827349
Server-Sent Events is a web technology that enables servers to push real-time, one-way event updates to clients over a single long-lived HTTP connection.
Statements (49)
| Predicate | Object |
|---|---|
| instanceOf |
HTML5 feature
ⓘ
server push technology ⓘ unidirectional communication mechanism ⓘ web technology ⓘ |
| advantage |
automatic reconnection built-in
ⓘ
simpler server implementation than WebSocket ⓘ works with existing HTTP infrastructure ⓘ |
| alsoKnownAs |
EventSource
NERFINISHED
ⓘ
SSE NERFINISHED ⓘ |
| clientAPI | EventSource interface NERFINISHED ⓘ |
| clientEnvironment |
JavaScript runtime
NERFINISHED
ⓘ
web browsers ⓘ |
| communicationDirection | server-to-client ⓘ |
| comparedTo | WebSocket NERFINISHED ⓘ |
| connectionType | long-lived HTTP connection ⓘ |
| dataFormat | UTF-8 encoded text stream ⓘ |
| defaultMIMEType | text/event-stream ⓘ |
| definedIn | HTML Living Standard NERFINISHED ⓘ |
| differenceFromWebSocket |
unidirectional instead of bidirectional
ⓘ
uses HTTP instead of custom protocol ⓘ |
| headerRequirement |
Cache-Control: no-cache
ⓘ
Connection: keep-alive ⓘ |
| introducedAround | 2010s ⓘ |
| limitation |
no client-to-server messaging over same channel
ⓘ
not supported in some legacy browsers ⓘ text-only payloads by specification ⓘ |
| messageFormatField |
data
ⓘ
event ⓘ id ⓘ retry ⓘ |
| relatedConcept |
Comet
ⓘ
long polling ⓘ |
| serverResponsibility | send events as lines separated by \n\n ⓘ |
| standardizedBy | WHATWG NERFINISHED ⓘ |
| supportsDirection | one-way ⓘ |
| supportsFeature |
automatic reconnection
ⓘ
comment lines for keep-alive ⓘ custom event types ⓘ event ID tracking ⓘ last-event-id header ⓘ |
| supportsTransport |
HTTP/1.1
ⓘ
HTTP/2 ⓘ |
| useCase |
live feeds
ⓘ
log streaming ⓘ real-time notifications ⓘ server-side monitoring dashboards ⓘ social media activity streams ⓘ stock price updates ⓘ |
| usesProtocol | HTTP ⓘ |
Referenced by (4)
Full triples — surface form annotated when it differs from this entity's canonical label.