A lightweight WebSocket wrapper that automatically reconnects on server disconnect and network interruptions. Version 2020.0.2 is the latest stable release. Key differentiator: targeted specifically for PhenixRTS real-time streaming use cases, with minimal configuration. The package provides a drop-in replacement for standard WebSocket with automatic reconnection logic including exponential backoff and event handling.
npm install phenix-web-reconnecting-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a reconnecting WebSocket to a secure WebSocket endpoint and sets up lifecycle event handlers.
Use instance properties: ws.reconnectInterval = 5000; or extend the class.
Attach event listeners once outside of reconnection callbacks. Use addEventListener pattern if needed.
Migrate to actively maintained WebSocket reconnection libraries.
Access readyState after the 'open' event or use a getter that checks for the underlying socket.
Install and import 'ws' package: npm install ws, then import WebSocket from 'ws' before using ReconnectingWebSocket in Node.js.
Set onclose after instantiation, not inside the constructor.
No dependency data recorded yet.