Server-Sent Events (SSE)

A simple, one-way, server-to-client streaming protocol defined as part of the HTML living standard. SSE runs over plain HTTP, supports automatic reconnection, and is widely used for live status feeds and LLM token streaming.

API entry from apis.yml

apis.yml Raw ↑
aid: communication-protocols:server-sent-events
name: Server-Sent Events (SSE)
description: A simple, one-way, server-to-client streaming protocol defined as part of the HTML living
  standard. SSE runs over plain HTTP, supports automatic reconnection, and is widely used for live status
  feeds and LLM token streaming.
humanURL: https://html.spec.whatwg.org/multipage/server-sent-events.html
baseURL: https://html.spec.whatwg.org
tags:
- HTML
- HTTP
- Real-Time
- Streaming
properties:
- type: Specification
  url: https://html.spec.whatwg.org/multipage/server-sent-events.html
- type: Documentation
  url: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events
x-features:
- Plain HTTP text/event-stream responses
- Automatic browser reconnection with Last-Event-ID
- Simpler than WebSocket for one-way fan-out
x-useCases:
- LLM token streaming
- Live status and activity feeds
- Server-pushed dashboards