{"library":"light-websocket-client-ts","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.0.22","tags":["javascript","websocket","async","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install light-websocket-client-ts","imports":["import { LightWebsocketClientImpl } from 'light-websocket-client-ts'","import { LightWebsocketClientImpl } from 'light-websocket-client-ts'; import * as WebSocket from 'ws'; class LightWebsocketCLientNodeImpl extends LightWebsocketClientImpl { ... }","import { LightWebsocketClientImpl } from 'light-websocket-client-ts'","const client = new LightWebsocketClientImpl(url); client.onConnect(cb); client.onDisconnect(cb); client.onMessage(cb); client.connect(); client.disconnect();"]},{"cmd":"yarn add light-websocket-client-ts","imports":[]},{"cmd":"pnpm add light-websocket-client-ts","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"light-websocket-client-ts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}