{"library":"insite-ws","type":"library","category":null,"description":"WebSocket abstraction for server and client with built-in heartbeat, request/response RPC protocol, and connection quality tracking. Part of the inSite stack, designed for seamless integration with insite-ws-transfers, insite-users-server-ws, and other inSite packages. Current stable version is 2.4.0. Release cadence is not actively maintained. The package provides three entry points: insite-ws/server for Node.js, insite-ws/client for browser/Bun, and insite-ws/client/node for Node.js with ws polyfill. Key differentiators: message format uses JSON arrays, built-in request/response RPC with `~r-q`/`~r-s` kinds, heartbeat at 5-second intervals, and auto-reconnect on client side. The server supports SSL, custom client classes, and event-based message handling. Requires Node.js >=20.0.0.","language":"javascript","status":"active","version":"2.4.0","tags":["javascript","insite","websocket","ws","rpc"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install insite-ws","imports":["import { WSServer } from 'insite-ws/server'","import { WSClient } from 'insite-ws/client'","import { WSServerClient } from 'insite-ws/server'","import type { Options } from 'insite-ws/server'"]},{"cmd":"yarn add insite-ws","imports":[]},{"cmd":"pnpm add insite-ws","imports":[]}],"homepage":"https://github.com/nesvet/insite#readme","github":"https://github.com/nesvet/insite","docs":null,"changelog":null,"pypi":null,"npm":"insite-ws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}