{"library":"w-websocket-client","type":"library","category":null,"description":"A lightweight wrapper for WebSocket that works in both Node.js and browser environments. Current stable version is 1.0.29. It provides a simple constructor-based API with callbacks for open, close, message, and error events. In Node.js it depends on the 'ws' package, but in the browser it uses native WebSocket with no dependencies. Key differentiator: unified API across platforms with automatic fallback, and UMD distribution for direct browser script tags. Low download count but functional for simple WebSocket use cases.","language":"javascript","status":"active","version":"1.0.29","tags":["javascript","package","tool","wrapper","websocket","nodejs","browser"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install w-websocket-client","imports":["import WSC from 'w-websocket-client/dist/w-websocket-client.umd.js'","const WSC = require('w-websocket-client/dist/w-websocket-client.umd.js')","const wsc = new WSC(opt)"]},{"cmd":"yarn add w-websocket-client","imports":[]},{"cmd":"pnpm add w-websocket-client","imports":[]}],"homepage":"https://github.com/yuda-lyu/w-websocket-client#readme","github":"https://github.com/yuda-lyu/w-websocket-client","docs":null,"changelog":null,"pypi":null,"npm":"w-websocket-client","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}