{"library":"isomorphic-ws","type":"library","category":null,"description":"Isomorphic WebSocket wrapper that uses the ws library on Node.js and the native WebSocket API in browsers. Version 5.0.0 is the latest stable release, published July 2021. Requires ws as a peer dependency. The API matches the browser WebSocket standard but has notable differences from ws's Node interface (e.g., no Server class, no options constructor argument). Provides TypeScript type declarations. Lightweight and straightforward, but developers must test cross-environment behavior. Active maintenance with infrequent releases.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","browser","browsers","isomorphic","node","websocket","ws","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install isomorphic-ws","imports":["import WebSocket from 'isomorphic-ws'","const WebSocket = require('isomorphic-ws')","import type WebSocket from 'isomorphic-ws'"]},{"cmd":"yarn add isomorphic-ws","imports":[]},{"cmd":"pnpm add isomorphic-ws","imports":[]}],"homepage":"https://github.com/heineiuo/isomorphic-ws#readme","github":"https://github.com/heineiuo/isomorphic-ws","docs":null,"changelog":null,"pypi":null,"npm":"isomorphic-ws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}