{"library":"websocket-front","type":"library","category":null,"description":"A lightweight TypeScript wrapper around the native browser WebSocket API, providing automatic reconnection and heartbeat detection out of the box. Version 1.1.4 is the latest stable release. It distinguishes itself by requiring zero configuration for basic usage — both reconnect and heartbeat are enabled by default — while still offering customizable options for timeouts, retry limits, and callbacks. Pure client-side library with no server-side dependencies. Ships TypeScript type definitions. Released at a moderate cadence (last update April 2024).","language":"javascript","status":"active","version":"1.1.4","tags":["javascript","native","web","websocket","webfront","js","ts","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install websocket-front","imports":["import Socket from 'websocket-front'","import Socket from 'websocket-front'","import type { SocketOptions } from 'websocket-front'","import type { SocketEvents } from 'websocket-front'"]},{"cmd":"yarn add websocket-front","imports":[]},{"cmd":"pnpm add websocket-front","imports":[]}],"homepage":"https://github.com/yquanmei/websocket-front#readme","github":"https://github.com/yquanmei/websocket-front","docs":null,"changelog":null,"pypi":null,"npm":"websocket-front","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}