typed-websocket-client

JSON →
library 1.3.2 ·javascript
verified Jun 7, 2026

Typed WebSocket client for browsers and Node.js with automatic reconnection, heartbeat/keepalive, send buffer, and exponential backoff. The current stable version is 1.3.2. Release cadence is irregular. Key differentiators: full TypeScript generics for send/receive types, event-driven API (on/off), AbortSignal support, and pluggable encoding/decoding. Inspired by the Phoenix Framework Socket.