web-realtime-socket-io

web-realtime-socket-io is a skill for Claude Code, Codex from agents-inc/skills. It costs 37 tokens per session (2,770 once invoked), scanned A, original, MIT.

A guide to using Socket.IO version 4, a library for two-way real-time communication between clients and servers. It covers connections, reconnecting, authentication, rooms, namespaces, and typed events.

In plain words
What is it for?
Use it when building chat, live updates, notifications, multiplayer interactions, or other real-time features with Socket.IO and TypeScript.
Why use it?
It helps avoid common connection, security, and event-listener mistakes when building features that update without repeated page requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building chat, live updates, notifications, multiplayer interactions, or other real-time features with Socket.IO and TypeScript.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agents-inc/skills/web-realtime-socket-io
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add agents-inc/skills --skill web-realtime-socket-io
Clone the repo
git clone --depth 1 https://github.com/agents-inc/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-realtime-socket-io

README.md
[![agentmods](https://agentmods.dev/badge/skills/agents-inc/skills/web-realtime-socket-io/github.svg)](https://agentmods.dev/skills/agents-inc/skills/web-realtime-socket-io)
Your own site
<a href="https://agentmods.dev/skills/agents-inc/skills/web-realtime-socket-io"><img src="https://agentmods.dev/badge/skills/agents-inc/skills/web-realtime-socket-io/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for web-realtime-socket-io

Your own site · 80×15
<a href="https://agentmods.dev/skills/agents-inc/skills/web-realtime-socket-io"><img src="https://agentmods.dev/badge/skills/agents-inc/skills/web-realtime-socket-io.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,770 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.02770
Opus 5.5 $0.00015 $0.01108
Sonnet 5.5 $0.00007 $0.00554
Haiku 4.5 $0.00004 $0.00277

Measured 1mo ago against content hash 18cc7a00ff90, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

web-realtime-socket-io scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/skills/web-realtime-socket-io/SKILL.md · 277 lines

How it starts

The opening of the file, as written. The whole thing — 277 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Socket.IO Real-Time Communication Patterns

Quick Guide: Socket.IO is a protocol layered over WebSocket, not an implementation of it — its client and a plain WebSocket server cannot talk to each other in either direction. What the layer buys is transport fallback, automatic reconnection, rooms, namespaces and acknowledgments, for about 14.5KB gzipped. The facts that change the answer: auth accepts a function that re-runs on every reconnection, timeout and ackTimeout are different clocks, and socket.recovered (v4.6.0+) tells you whether missed events were replayed or a full state refresh is owed.

Detailed Resources:

  • examples/core.md — typed socket factory, connection and event hooks, emit-with-ack, offline queue, volatile events, Manager multiplexing
  • examples/authentication.md — token auth, refresh on reconnect, per-namespace auth, cookie auth, auth state machine
  • examples/rooms.md — room manager and hooks, multi-room chat, namespace sockets, conditional namespace access
  • reference.md — client options, socket and manager events, disconnect reasons, comparison table, checklists

Which path applies

  • One connection to the default namespace — io(url, options) creates the socket and its Manager together. This is the shape in examples/core.md and covers most apps.
  • Several namespaces over one connection — construct new Manager(url) yourself and call manager.socket("/chat") per namespace. The namespaces share a single transport and can each carry their own auth, which is what makes per-namespace authorization possible. See examples/rooms.md.

Calling io() more than once against the same URL opens a second transport rather than multiplexing — the Manager is what shares one.


<critical_requirements>

Before writing Socket.IO code

Declare ServerToClientEvents and ClientToServerEvents and type the socket with them. Event names are strings at runtime, so this is what turns "mesage" from a listener that never fires into a compile error.

Read the full file on GitHub · 277 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -47 lines 18cc7a00ff90
  2. 1mo ago First seen · 324 lines · 37 tokens per session scan A c5a0e4a95cf1

Subscribe to this mod's changes

web-realtime-socket-io is a skill published in the GitHub repository agents-inc/skills (24 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 2,770 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

moai-platform-auth

Authentication and authorization specialist covering Auth0, Clerk, and Firebase Auth. Use when implementing authentication, MFA, SSO, passkeys, WebAuthn, social login, or security features.

modu-ai/moai-adk · 43 tokens

api-design

Use this skill when designing, implementing, or reviewing an HTTP API — endpoints, request and response shapes, errors, pagination, versioning, and authorization. Triggers: user says "API", "endpoint", "REST", "route", "status code", "pagination", "request body", "response shape", "OpenAPI", "versioning"…

WrongStack/WrongStack · 82 tokens

nextjs-modern

Build, migrate, and debug Next.js 16 App Router applications with React 19, Server Components, Server Actions, explicit caching, and production deployment. Use when implementing Next.js routes, upgrading to the latest stable Next.js, or fixing rendering and cache behavior.

WrongStack/WrongStack · 57 tokens

authentication-sessions

Implement application sign-in, sessions and identity integration with explicit account/tenant authorization. Use when building OAuth/OIDC, passkeys, password login or session renewal; use security-scanner for a requested defensive review.

WrongStack/WrongStack · 46 tokens

mcp-development

Build and maintain MCP servers and clients with versioned protocol contracts, typed schemas and reliable lifecycle handling. Use when exposing tools/resources/prompts over MCP, selecting a transport or fixing reconnect/cancellation behavior; do not assume all protocol versions share the same session model.

WrongStack/WrongStack · 56 tokens

php-laravel

Build and upgrade PHP/Laravel applications with validated requests, policy authorization and reliable jobs/data access. Use when implementing Laravel routes, Eloquent models or queues; preserve existing project conventions and runtime compatibility.

WrongStack/WrongStack · 45 tokens