RobustWebSocket
JSON →A robust, reconnecting WebSocket client for the browser that wraps the standard WebSocket API with automatic reconnection, online/offline awareness, and configurable reconnect strategies. Version 1.0.3 is the current stable release, last updated in 2020. It differentiates from alternatives like reconnecting-websocket by providing native error-code awareness (skipping reconnection on HTTP 400/500 equivalent codes), online/offline detection to avoid battery drain, and a functional composition approach for custom reconnect logic via the shouldReconnect callback. Includes TypeScript type definitions and supports a function-based URL for dynamic endpoint selection. No known security issues.
Traffic · last 30 days stale · no recent hits
top countries 🇸🇬 Singapore · 🇺🇸 United States · BD · VN