sse-streaming
Installation
SKILL.md
SSE Streaming
Quick Reference
| Category | Trigger | Complexity | Source |
|---|---|---|---|
| patterns | "SSE streaming", "real-time updates", "server push", "event streaming" | Medium | 4 projects |
Implements the Server-Sent Events pattern for streaming structured progress events from a Cloudflare Workers backend to a browser client. Covers server-side emission with ReadableStream, client-side EventSource consumption with skeleton placeholders, state management with sessionStorage persistence, and reconnection with exponential backoff.
When to Use
- Streaming AI generation progress to a browser (block-by-block content arrival)
- Long-running server tasks where the client needs real-time status updates
- Multi-stage pipelines that emit progress at each stage boundary
- Any scenario where the server pushes data and the client only listens (no bidirectional needed)