vietanh-websocket
JSON →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.
Resources
packagevietanh-websocket ↗
API endpoints
full doc /v1/registry/vietanh-websocket