ws-reconnect

JSON →
library 1.0.7 ·javascript maintenance
verified Jun 7, 2026

ws-reconnect is a lightweight Node.js WebSocket client with automatic reconnection logic. Version 1.0.7 is the current stable release, but the package has not been updated since 2019. It provides event-driven reconnection with configurable retry count and reconnect interval. Unlike more modern alternatives (e.g., reconnecting-websocket), this package is minimal, untyped, and does not support browser environments or the standard WebSocket API. It depends on the 'ws' library. Note: The constructor is named WSCLIENT (not WSCLINET as in the README example).