Skip to content
Back to skills

Sse

ASecurity

Server-Sent Events implementation, streaming patterns, and real-time updates.

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 2, 2026
ai-agentstypescriptbashbackendfullstack

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill sse --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sse?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sse
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-sse-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-sse-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

```typescript
// Server
app.get('/events', (req, res) => {
  res.setHeader('Content-Type', 'text/event-stream');
  res.setHeader('Cache-Control', 'no-cache');
  res.setHeader('Connection', 'keep-alive');

  const sendEvent = (event: string, data: object) => {
    res.write(`event: ${event}\n`);
    res.write(`data: ${JSON.stringify(data)}\n\n`);
  };

  // Send initial data
  sendEvent('connected', { timestamp: Date.now() });

  // Subscribe to updates
  const unsubscribe = eventEmitter.on('update', (data) => {
    sendEvent('update', data);
  });

  req.on('close', () => {
    unsubscribe();
  });
});

// Client
const eventSource = new EventSource('/events');

eventSource.addEventListener('update', (event) => {
  const data = JSON.parse(event.data);
  console.log('Update:', data);
});
```

## Best Practices

- Handle reconnection
- Use event types for routing
- Implement keep-alive
- Clean up on disconnect

## Target Processes

- real-time-updates
- live-feeds
- notification-systems

Files in this skill

  • README.md625 B
  • SKILL.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.