Agent skill · Backend & API

websocket-realtime

Real-time communication patterns with WebSocket, Socket.io, Server-Sent Events, and scaling strategies

Rohit Ghumare73,165★ · +3,601/wk · 3 repos on radarProfile →
claude-codeApache-2.0
Install
npx skills add rohitg00/awesome-claude-code-toolkit --skill websocket-realtime --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/websocket-realtime/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,438
Language: JavaScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# WebSocket & Real-Time ## WebSocket Server ```typescript import { WebSocketServer, WebSocket } from "ws"; const wss = new WebSocketServer({ port: 8080 }); const rooms = new Map<string, Set<WebSocket>>(); wss.on("connection", (ws, req) => { const userId = authenticateFromUrl(req.url); if (!userId) { ws.close(4001, "Unauthorized"); return; } ws.on("message", (data) => { const message = JSON.parse(data.toString()); switch (message.type) { case "join": joinRoom(message.room, ws); break; case "leave": leaveRoom(message.room, ws); break; case "broadcast": broadcastToRoom(message.room, message.payload, ws); break; } }); ws.on("close", () => { rooms.forEach((members) => members.delete(ws)); }); ws.send(JSON.stringify({ type: "connected", userId })); }); function joinRoom(room: string, ws: WebSocket) { if (!rooms.has(room)) rooms.set(room, new Set()); rooms.get(room)!.add(ws); } function broadcastToRoom(room: string, payload: unknown, sender: WebSocket) { const members = rooms.get(room); if (!members) return; const message = JSON.stringify({ type: "message", room, payload }); members.forEach((client) => { if (client !== sender && client.readyState === WebSocket.OPEN) { client.send(message)

What's inside
Steps it walks through
  1. WebSocket Server
  2. Socket.io with Rooms
  3. Server-Sent Events (SSE)
  4. Client Reconnection
  5. Anti-Patterns
  6. Checklist
More from awesome-claude-code-toolkit
All skills →
About this skill
What does the websocket-realtime skill do?

Real-time communication patterns with WebSocket, Socket.io, Server-Sent Events, and scaling strategies

How do I install it?

Run `npx skills add rohitg00/awesome-claude-code-toolkit --skill websocket-realtime --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From rohitg00/awesome-claude-code-toolkit, a repository with 2,438 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going