Server-Sent Events

A response kept open so the server can push a stream of events.

What is Server-Sent Events?

Server-sent events keep a response open so the server can push a stream of text events to the browser, simpler than WebSockets when data only flows one way.

Content-Type: text/event-stream

data: {"progress": 40}

data: {"progress": 80}

Level: Master · More Web Development terms at this level

Updated