{"library":"pws","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"7.0.0","tags":["javascript","websocket","reconnect","ubre","ping","timeout"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install pws","imports":["import { PersistentWebSocket } from 'pws'","import PWS from 'pws'","const PWS = require('pws'); const pws = PWS(url, WebSocket);"]},{"cmd":"yarn add pws","imports":[]},{"cmd":"pnpm add pws","imports":[]}],"homepage":"https://github.com/porsager/pws#readme","github":"https://github.com/porsager/pws","docs":null,"changelog":null,"pypi":null,"npm":"pws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}