{"library":"shopify-reconnecting-websocket","type":"library","category":null,"description":"A lightweight (<600 bytes gzipped) drop-in replacement for the native WebSocket API that automatically reconnects when the connection drops. Version 0.1.0 is a fork of the original reconnecting-websocket library, updated to track the latest master branch. It is API-compatible with WebSocket, so you can replace 'new WebSocket(url)' with 'new ReconnectingWebSocket(url)' and get automatic reconnection with exponential backoff (configurable via options like reconnectInterval, maxReconnectInterval, reconnectDecay). It supports all standard WebSocket events (onopen, onmessage, onclose, onerror) and methods (send, close). Compared to alternatives, it is minimal and has no dependencies, but note that this fork may not see active maintenance.","language":"javascript","status":"maintenance","version":"0.1.0","tags":["javascript"],"install":[{"cmd":"npm install shopify-reconnecting-websocket","imports":["import ReconnectingWebSocket from 'shopify-reconnecting-websocket'","const { default: ReconnectingWebSocket } = require('shopify-reconnecting-websocket')","var ws = new ReconnectingWebSocket('ws://...');"]},{"cmd":"yarn add shopify-reconnecting-websocket","imports":[]},{"cmd":"pnpm add shopify-reconnecting-websocket","imports":[]}],"homepage":"https://github.com/joewalnes/reconnecting-websocket","github":"git://github.com/Shopify/reconnecting-websocket","docs":null,"changelog":null,"pypi":null,"npm":"shopify-reconnecting-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Sun Jun 07","next_check":"Sat Sep 05","install_tag":null}}