sse-streaming-patterns
OfficialReal-time SSE patterns for reliable streaming.
Software Engineering#polling#server-sent events#SSE#heartbeat#TransformStream#ReadableStream#web streaming
Authorplanetaryescape
Version1.0.0
Installs0
System Documentation
What problem does it solve?
SSE streaming patterns provide robust, real-time event delivery for web apps by offering TransformStream and ReadableStream implementations, addressing long-lived connections, keep-alives, and cross-browser compatibility.
Core Features & Use Cases
- TransformStream-based SSE for mobile API with deterministic updates and heartbeat support.
- ReadableStream-based SSE for legacy tier 2 compatibility with progress updates.
- Heartbeat keep-alives and cleanup to prevent carrier timeouts on long-lived connections.
- Proper headers and event formatting to ensure reliable streaming across servers and clients.
- Use cases include live dashboards, real-time notifications, and chat-style interactions.
Quick Start
Create an SSE endpoint using the TransformStream pattern for modern clients or the ReadableStream pattern for legacy clients, then enable heartbeat and cleanup utilities to maintain a live connection.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sse-streaming-patterns Download link: https://github.com/planetaryescape/blah.chat/archive/main.zip#sse-streaming-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.