Protocols
Server-sent events
Server-sent events stream text events from an HTTP server to a client.
How it works
The browser keeps one response open and processes event frames as they arrive. The channel is one-way, so client commands use separate requests.
A concrete example
Illustrative: stream 80 generated-token events followed by one done event.
Do not confuse it with WebSocket
SSE is server-to-client over HTTP; WebSocket is bidirectional.