reconnecting-websocket

JSON →
library 4.4.1 ·javascript
verified Jun 7, 2026

A WebSocket client that automatically reconnects when the connection is closed. Stable version 4.4.1, actively maintained. Provides a WebSocket API compatible interface with Level0 and Level2 event models. Key differentiators: dependency-free, multi-platform (Web, ServiceWorkers, Node.js, React Native), configurable reconnect behavior, connection timeout handling, buffering of messages during disconnection, and support for dynamic server URLs via string, function, or async function.