siokit-client is the client-side Socket.IO compatible library written in TypeScript, version 0.1.5. It provides WebSocket transport with typed event emission, listening, acknowledgements (emitWithAck), and binary support. It is part of the siokit ecosystem (siokit-server, siokit-parser, siokit-core) and is runtime-agnostic, working with Bun, Node.js, and Hono. Unlike the official Socket.IO client, siokit-client is lightweight with zero runtime dependencies, and leverages modern TypeScript for strong typing. The package has a monthly release cadence and is still in early development.
npm install siokit-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates connecting with newSocket, listening to connect, emitting/receiving typed events, using emitWithAck for acknowledgements, and sending/receiving binary data.
Lock the version in package.json and watch for breaking changes on GitHub.
Use the official Socket.IO client if you need polling fallback.
If using Node.js, use a WebSocket polyfill such as 'ws' with the 'websocket' transport.
Use import type syntax for type-only exports.
Use import { newSocket } from 'siokit-client' or enable ESM in your project (e.g., set "type": "module" in package.json).Ensure you call newSocket(url) and use the returned object.
Configure the server to use WebSocket only, or use the official Socket.IO client for fallback.
Use import type { Socket } from 'siokit-client' instead.