PWS - Persistent WebSocket
JSON →PWS (v7.0.0) is a drop-in replacement for the browser WebSocket API that adds automatic reconnection with exponential backoff (max 5 min) and configurable ping timeout to detect half-open connections. It works in both browsers and Node.js (requires the 'ws' library). Unlike alternatives like reconnecting-websocket, PWS closely mimics the standard WebSocket interface and triggers reconnect on browser 'online' events. Released by porsager with regular updates.