{"library":"observable-websocket","type":"library","category":null,"description":"A WebSocket client that enables interaction via RxJS-like subscriptions. Version 0.1.3 is the current stable release. It automatically manages connection lifecycle: establishes connection on first subscribe, reconnects up to a configurable limit on unexpected disconnection, and closes when the last consumer unsubscribes. Differentiating features include observable-based message handling and built-in reconnection logic. Suitable for Node.js >=8.0.0.","language":"javascript","status":"active","version":"0.1.3","tags":["javascript","observable","subscription","websocket","websockets","client","event stream"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install observable-websocket","imports":["import { ObservableWebsocket } from 'observable-websocket'","import type { ObservableWebsocket } from 'observable-websocket'","const ws = new ObservableWebsocket({ uri: 'wss://example.com' })","const consumer = (msg) => console.log(msg);\n await ws.subscribe({ consumer });","await ws.send({ data: 'hello' })"]},{"cmd":"yarn add observable-websocket","imports":[]},{"cmd":"pnpm add observable-websocket","imports":[]}],"homepage":"https://github.com/uladkasach/observable-websocket","github":"https://github.com/uladkasach/observable-websocket","docs":null,"changelog":null,"pypi":null,"npm":"observable-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}