{"library":"ts-ws-machine","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","TypeScript","WebSocket","Reconnect","HeartBeat","FSM","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ts-ws-machine","imports":["import { wsMachine } from 'ts-ws-machine'","import { calcBackoff } from 'ts-ws-machine'","import type { BackoffFn } from 'ts-ws-machine'"]},{"cmd":"yarn add ts-ws-machine","imports":[]},{"cmd":"pnpm add ts-ws-machine","imports":[]}],"homepage":"https://github.com/rundis/ts-ws-machine#readme","github":"https://github.com/rundis/ts-ws-machine","docs":null,"changelog":null,"pypi":null,"npm":"ts-ws-machine","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}