ts-ws-machine
JSON →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.
Resources
packagets-ws-machine ↗