light-websocket-client-ts
JSON →A lightweight WebSocket client library for TypeScript with built-in keep-alive and automatic reconnection with exponential backoff. Version 0.0.22, active development. Requires a custom protocol header for heartbeat (since browser WebSocket API cannot send ping frames) and must be paired with the companion server `light-websocket-server`. Differentiates from raw WebSocket by providing reconnect management, disconnection callbacks, and a simple interface for both browser and Node.js (using the `ws` package). Ships TypeScript type definitions.
Resources
packagelight-websocket-client-ts ↗