Socketio Realtime Hooks

React hook suite for a Socket.IO realtime feed — one authenticated app-wide connection in a context provider, useSocketEvent (listeners that never rebind), useSocketRoom (auto re-join after reconnect), an echo-suppression contract so a tab is never told to re-fetch its own change (X-Client-Id header ↔ skip_sid), live presence (who is at which station/terminal), and the "socket is the fast path, a slow poll self-heals" composition. Use when adding Socket.IO / websocket realtime updates to a React app, live data that should push instead of poll, room-scoped subscriptions, "other users see changes instantly", duplicate refreshes after a user's own mutation, or presence / who's-online rosters.

nicksonthc Updated

File contents

nicksonthc/claude-skill/tree/main/skills/socketio-realtime-hooks commit 9daf6825a8

Frequently asked questions

npx skillmds@latest add nicksonthc/socketio-realtime-hooks