{"library":"sockette-dynamic-url","type":"library","category":null,"description":"Sockette is a tiny (367 bytes) WebSocket wrapper that automatically reconnects on connection loss. Current stable version is 2.0.7. Released on npm, it provides a minimal API for managing WebSocket connections with configurable timeout and max reconnection attempts. It supports event listeners for open, message, close, reconnect, and maximum attempts reached events. Unlike raw WebSocket, it allows reusing a single instance without redeclaring listeners. It ships TypeScript types and is compatible with both browser and Node.js (with WebSocket polyfill).","language":"javascript","status":"active","version":"2.0.7","tags":["javascript","socket","reconnect","websocket","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install sockette-dynamic-url","imports":["import Sockette from 'sockette'","import { Sockette } from 'sockette'","import Sockette from 'sockette'"]},{"cmd":"yarn add sockette-dynamic-url","imports":[]},{"cmd":"pnpm add sockette-dynamic-url","imports":[]}],"homepage":"https://github.com/lukeed/sockette","github":"https://github.com/lukeed/sockette","docs":null,"changelog":null,"pypi":null,"npm":"sockette-dynamic-url","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}