Websocket Implementation
Practical WebSocket implementation guide for real-time chat, notifications, and collaborative apps with Redis-backed scaling.
- CCM score
- 39 of 100
- skills.sh installs
- 670
- GitHub stars
- 396
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers Node.js (Socket.IO), browser clients, and Python (aiohttp) servers, plus message types and protocols
- Includes a Quick Start with reconnection settings and a Redis adapter for horizontal scaling across server instances
- Lists do and don't guidance on authentication, rate limiting, message acknowledgment, and cleaning up disconnected connections
- Designed for teams building real-time chat, live notifications, dashboards, or multiplayer features
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill websocket-implementation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
WebSocket Implementation
Table of Contents
Overview
Build scalable WebSocket systems for real-time communication with proper connection management, message routing, error handling, and horizontal scaling support.
When to Use
- Building real-time chat and messaging
- Implementing live notifications
- Creating collaborative editing tools
- Broadcasting live data updates
- Building real-time dashboards
- Streaming events to clients
- Live multiplayer games
Quick Start
Minimal working example:
const express = require("express");
const http = require("http");
const socketIo = require("socket.io");
const redis = require("redis");
const app = express();
const server = http.createServer(app);
const io = socketIo(server, {
cors: { origin: "*" },
transports: ["websocket", "polling"],
reconnection: true,
reconnectionDelay: 1000,
reconnectionDelayMax: 5000,
reconnectionAttempts: 5,
});
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Backend & APIs, Frontend & UI Code
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Requirements Gathering666
- Image Optimization665
- Ruby Rails Application661
- Api Rate Limiting649
- Internationalization I18n649
- Information Architecture642
- Unit Testing Framework635
- Backup Disaster Recovery630
- Color Accessibility629
- Github Actions Workflow629
- Fastapi Development627
- Static Code Analysis624
- Aws Lambda Functions621
- Vulnerability Scanning621
- User Research Analysis620
- Data Encryption618
- Time Series Analysis618
- Api Authentication613
- Refactor Legacy Code612
- Performance Testing611
- Competitor Analysis610
- Security Testing610
- Frontend Accessibility607
- Design Patterns Implementation601
Similar to Websocket Implementation
More Backend & APIsreal-time-featuresaj-geddes/useful-ai-prompts549 installsReal-time WebSocket, SSE, and long-polling implementation guidance for chat, dashboards, and live notifications.
websocket-developmentmindrally/skills876 installsGuidelines for building real-time WebSocket applications with secure connections, scalable patterns, and tested reliability.
websocket-engineerjeffallan/claude-skills7.4K installsBuild real-time WebSocket and Socket.IO systems with auth, Redis scaling, presence, and rooms.
websocket-realtime-builderpatricio0312rev/skills551 installsReal-time features built on Socket.io, covering auth, rooms, and reconnection handling for live chat and push.
websocket-securityyaklang/hack-skills4.2K installsReference guide for WebSocket security: handshake mechanics, cross-site WebSocket hijacking, testing tooling, and common flaws.
bun-websocket-serversecondsky/claude-skills413 installsBun-native WebSocket server built on Bun.serve, with pub/sub topics, typed connection data, and tuning options.