{"library":"websocket-heartbeats","type":"library","category":null,"description":"A lightweight TypeScript library for monitoring WebSocket connections using heartbeat pings. Version 1.2.0 is the latest stable release. It periodically sends ping frames and detects connection loss with configurable intervals, invoking a callback on timeout. Unlike manually implementing timers, it handles cleanup and disconnection scenarios. Designed for browser and Node.js environments with ESM and CJS support. No external dependencies. Suitable for real-time applications like chat, trading, or IoT.","language":"javascript","status":"active","version":"1.2.0","tags":["javascript","web","socket","heart","beat","beats","heartbeat","websocket"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install websocket-heartbeats","imports":["import { Heartbeat } from 'websocket-heartbeats'","import { HeartbeatOptions } from 'websocket-heartbeats'","const { Heartbeat } = require('websocket-heartbeats')"]},{"cmd":"yarn add websocket-heartbeats","imports":[]},{"cmd":"pnpm add websocket-heartbeats","imports":[]}],"homepage":"https://github.com/luzzif/websocket-heartbeats#readme","github":"https://github.com/luzzif/websocket-heartbeats","docs":null,"changelog":null,"pypi":null,"npm":"websocket-heartbeats","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}