| name | sse |
| description | Server-Sent Events implementation, streaming patterns, and real-time updates. |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
| graph | {"domains":["domain:web-development"],"specializations":["specialization:web-development"],"skillAreas":["skill-area:websocket-design","skill-area:streaming-realtime-processing"],"roles":["role:backend-engineer","role:fullstack-engineer"],"topics":["topic:event-driven-architecture"]} |
SSE Skill
Expert assistance for implementing Server-Sent Events for real-time streaming.
Capabilities
- Implement SSE endpoints
- Handle streaming responses
- Manage client connections
- Build event-driven updates
- Implement reconnection
Usage
Invoke this skill when you need to:
- Stream updates to clients
- Implement live feeds
- Build notification systems
- One-way real-time communication
Implementation
app.get('/events', (req, res) => {
res.setHeader('Content-Type', 'text/event-stream');
res.(, );
res.(, );
= () => {
res.();
res.();
};
(, { : .() });
unsubscribe = eventEmitter.(, {
(, data);
});
req.(, {
();
});
});
eventSource = ();
eventSource.(, {
data = .(event.);
.(, data);
});