WebSockets and real-time
Created by CodeCraft LLCBuild, debug and review real-time features
Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.
by Jace (@jamick)v1.5.2 · updated 2026-12-01Report copyright infringement
Description
Build, debug and review real-time features - choosing WebSockets vs Server-Sent Events vs polling vs a hosted service, Node.js servers with ws and Socket.IO, ASP.NET Core SignalR, reconnecting browser clients, handshake authentication and Origin checks against cross-site WebSocket hijacking, message validation and size limits, heartbeats, reconnect with backoff and jitter, resync after drops, backpressure, close codes, scaling across instances (Redis adapters, backplanes, sticky sessions), proxies and load balancers, serverless and edge hosting (Vercel Functions beta, Cloudflare Durable Objects, API Gateway), Supabase Realtime, Ably and Pusher, and testing with Vitest, Playwright and k6. Use whenever code imports ws, socket.io or @microsoft/signalr, calls new WebSocket() or EventSource, the user wants live updates, chat, notifications, presence or multiplayer, or reports dropped connections, 1006 closes, reconnect loops or messages that stop arriving.
Included with all-access
$15.00 one-time, permanent access
or
Buy 2 or more together for up to 40% off · View cart
You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms
Official and free skills are included with the all-access subscription
Changelog
Subscribers also see which files changed in each version.
v1.5.2Dec 1, 2026Latest
Added
- README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.5.1Nov 29, 2026
Changed
- Added a contents list to reference files over 100 lines (
servers-and-clients.md), so a partial read still shows every section.
v1.5.0Nov 28, 2026
Changed
- Checked against the ws, socket.io and engine.io GitHub releases, npm, Vercel Functions WebSockets and limits docs, and What's new in ASP.NET Core 11 (November 2026).
- .NET: SignalR targets .NET 10 LTS or 11; .NET 8 and 9 are out of support since 2026-11-10 (logged .NET follow-up applied).
- Vercel Functions WebSockets: no longer labelled beta; connections close at the function's max duration.
Added
- Blocker rule and checklist item:
ws< 8.23.0 / 7.5.14 ping-flood memory DoS, including the copies under Socket.IO (engine.io 6.6.13) and the SignalR Node client. - Pitfalls: Vercel max-duration drops; SignalR auth expiry and ASP.NET Core 11 authentication refresh.
v1.4.0Nov 20, 2026
Added
- Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.3.0Nov 6, 2026
Changed
- Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.2.0Nov 4, 2026
Changed
- Review report rule at the top of the skill, loaded before any review: one entry per finding as
Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
v1.1.1Oct 31, 2026
Changed
- References updated for renamed skills:
supabaseis nowsupabase-platform,eas-workflowsis noweas-workflows-ci,skill-creatoris nowskill-creator-aiskillz.
v1.1.0Oct 19, 2026
Fixed
- Socket.IO connection state recovery: works with the Redis Streams and MongoDB adapters, not the Redis Pub/Sub adapter.
- SignalR: sticky sessions are also required with the Redis backplane unless clients are WebSockets-only with skipNegotiation; added keep-alive and client-timeout defaults.
- SSE example: subscribe before replaying missed events (and dedupe by id) so events published during replay aren't lost.
Changed
- Vercel: Next.js route handlers can upgrade WebSockets on Vercel with
upgradeWebSocket()from@vercel/functions3.10+; upgrade requests pass through Firewall and rate limits; state belongs in an external store. - nginx:
proxy_http_version 1.1is only required before nginx 1.29.7; added Microsoft's SignalR nginx notes.
v1.0.0Oct 18, 2026
Added
- First release.