{"library":"wshe","type":"library","category":null,"description":"A simple yet modern WebSocket client for JavaScript/TypeScript. Current stable version is 2.2.2. It provides a clean API with event-based message handling, automatic reconnection, heartbeat support, and TypeScript generics for strongly-typed messages. Ships with server-side utilities for heartbeat protocol. Released under MIT license. Lightweight alternative to heavier WebSocket libraries.","language":"javascript","status":"active","version":"2.2.2","tags":["javascript","websocket","websocket client","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install wshe","imports":["import { createWSHE } from 'wshe'","import { getHeartbeatResponse } from 'wshe/server'","import { isHeartbeatRequest } from 'wshe/server'"]},{"cmd":"yarn add wshe","imports":[]},{"cmd":"pnpm add wshe","imports":[]}],"homepage":"https://github.com/alexzhang1030/wshe#readme","github":"https://github.com/alexzhang1030/wshe","docs":null,"changelog":null,"pypi":null,"npm":"wshe","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}