{"library":"sturdy-websocket","type":"library","category":null,"description":"Tiny (<4kb gzipped) WebSocket wrapper that automatically reconnects and buffers messages sent while disconnected. Version 0.2.1 is the latest stable release (no update cadence documented). Fully implements the standard WebSocket API (including readyState, EventTarget, and bufferedAmount) so it can be a drop-in replacement. The last release was in 2019 and the package appears to be in maintenance mode. Differentiates from alternatives like reconnecting-websocket by providing a complete WebSocket-compatible interface with configurable reconnection strategies (backoff, timeouts, max attempts).","language":"javascript","status":"maintenance","version":"0.2.1","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install sturdy-websocket","imports":["import SturdyWebSocket from 'sturdy-websocket'","const SturdyWebSocket = require('sturdy-websocket').default","import type SturdyWebSocket from 'sturdy-websocket'"]},{"cmd":"yarn add sturdy-websocket","imports":[]},{"cmd":"pnpm add sturdy-websocket","imports":[]}],"homepage":"https://github.com/dphilipson/sturdy-websocket","github":"git://github.com/dphilipson/sturdy-websocket","docs":null,"changelog":null,"pypi":null,"npm":"sturdy-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}