Reference · Glossary
SSE (Server-Sent Events)
Last updated
An HTTP pattern where the **server pushes chunks** to the browser over one long response — common for LLM streaming.
When to use
Chat UIs that show tokens as they arrive from your API route.
When not to
Bidirectional real-time apps that need client→server pushes constantly — WebSockets may fit better.
Example
OpenAI streaming returns SSE lines like `data: {"choices":[{"delta":{"content":"Hi"}}]}`.