Real-Time & Streaming

Event Stream

The MIME type text/event-stream used by Server-Sent Events, defining a line-based text format with named fields: event (event type), data (payload), id (last event ID for reconnection), and retry (reconnection delay in ms). Each event is separated by a blank line. The browser's EventSource API automatically reconnects using the Last-Event-ID header if the connection drops.

Protocolos relacionados

Ver también