Socket.IO-compatible server & client library written in TypeScript, supporting Engine.IO v4 (WebSocket and HTTP long-polling) and Socket.IO protocol with typed events, namespaces, acknowledgements, and binary attachments. Current stable version is 0.1.5 with moderate release cadence. Key differentiators: runtime-agnostic (Bun, Hono, Node.js via adapters), zero runtime dependencies beyond its own sub-packages (siokit-core, siokit-parser), and full TypeScript types. Unlike official Socket.IO, siokit is lightweight and adapter-based, making it suitable for serverless and edge environments.
npm install siokitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setting up a siokit server with Engine.IO + Socket.IO on Bun, and a client that connects, sends a named event, and receives a reply.
Pin to exact version and regularly check changelog.
Add 'siokit-client' as a dependency if you need client functionality.
Use semver ranges like ^0.1.0 cautiously.
Add 'siokit-core' and 'siokit-parser' to dependencies if you import them directly.
Run 'npm install siokit-client'
Use 'import { newServer } from 'siokit'' instead of 'import siokit from 'siokit''.Import 'newSocket' from 'siokit-client'.
Import { decode } from 'siokit-parser'.