{"library":"tools-websocket","type":"library","category":null,"description":"A JavaScript WebSocket utility library that provides heartbeat, auto-reconnection, and message retransmission for browser environments. Current stable version is 1.0.6. It was extracted from the tools-vue3 library to be used standalone in plain HTML/JS or any JavaScript project. Key differentiators: built-in heartbeat mechanism to detect stale connections, automatic reconnection with customizable intervals, and reliable message retransmission ensuring messages are not lost during disconnection. It ships with TypeScript type definitions and is ESM-only.","language":"javascript","status":"active","version":"1.0.6","tags":["javascript","typescript","tools","websocket"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install tools-websocket","imports":["import { WebSocketTool } from 'tools-websocket'","import { createWebSocket } from 'tools-websocket'","import type { WebSocketOptions } from 'tools-websocket'"]},{"cmd":"yarn add tools-websocket","imports":[]},{"cmd":"pnpm add tools-websocket","imports":[]}],"homepage":"https://gitee.com/veigarchen","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"tools-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}