{"library":"ws-heartbeat","type":"library","category":null,"description":"Lightweight heartbeat/ping-pong library for WebSocket connections, compatible with both server-side (ws library) and browser-side WebSocket. Version 1.3.0 provides a simple API to detect dead connections and maintain active WebSocket sessions. Differentiates from manual ping/pong implementations by handling intervals, timeouts, and automatic cleanup. No native WebSocket ping frames required, works with any message format. Low dependency footprint.","language":"javascript","status":"active","version":"1.3.0","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ws-heartbeat","imports":["import { setWsHeartbeat } from 'ws-heartbeat/client'","import { setWsHeartbeat } from 'ws-heartbeat/server'","const { setWsHeartbeat } = require('ws-heartbeat/client')"]},{"cmd":"yarn add ws-heartbeat","imports":[]},{"cmd":"pnpm add ws-heartbeat","imports":[]}],"homepage":"https://github.com/plantain-00/ws-heartbeat#readme","github":"https://github.com/plantain-00/ws-heartbeat","docs":null,"changelog":null,"pypi":null,"npm":"ws-heartbeat","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}