{"library":"vietanh-websocket","type":"library","category":null,"description":"A JavaScript SDK for WebSocket communication with automatic reconnection, heartbeat monitoring, and subscription support. Current version 0.4.3. The package provides a simple client that handles connection lifecycle, reconnection with configurable attempts and delays, and heartbeat tracking to detect disconnections. It emits events for 'connect', 'disconnect', 'message', and 'close'. Key differentiator: built-in heartbeat and reconnection logic out of the box. Suitable for real-time applications requiring persistent WebSocket connections.","language":"javascript","status":"active","version":"0.4.3","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install vietanh-websocket","imports":["import { socketClient } from 'vietanh-websocket'","import { SocketClient } from 'vietanh-websocket'","import type { ClientOptions } from 'vietanh-websocket'"]},{"cmd":"yarn add vietanh-websocket","imports":[]},{"cmd":"pnpm add vietanh-websocket","imports":[]}],"homepage":"https://github.com/vietanh74/vietanh-websocket#readme","github":"https://github.com/vietanh74/vietanh-websocket","docs":null,"changelog":null,"pypi":null,"npm":"vietanh-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}