ts-ws-machine

JSON →
library 1.0.2 ·javascript
verified Jun 7, 2026

A TypeScript WebSocket client modeled as a finite state machine (FSM) with built-in reconnect and heartbeat support. v1.0.2, stable, actively maintained. Key differentiators: FSM-based design provides predictable state transitions, customisable backoff strategies (exponential, linear, constant), and heartbeat/ping-pong timeout handling. Ships TypeScript definitions. Lightweight with no external dependencies.