Skip to content

Glossary: Real-Time Apps with WebSockets

Content-Type: text/event-stream

Also written: text/event-stream, event stream

The header that tells the browser a response is a server-sent events stream. The body is `field: value` lines, with each message ended by a blank line.

Where the book teaches it

Related terms

Server-sent events (SSE)EventSource