{"library":"promise-ws","type":"library","category":null,"description":"A promise-based WebSocket implementation for Node.js, version 1.0.0-1. Built on top of the popular ws library, it provides promise-returning methods for common WebSocket operations such as send, ping, and pong, as well as factory methods for creating client and server instances. This package offers a cleaner async/await style compared to ws, which uses callbacks and events. It is maintained as a thin wrapper, inheriting the full ws API while adding promise support. Equivalent to using ws with promisify or wrapping manually, but integrated directly.","language":"javascript","status":"maintenance","version":"1.0.0-1","tags":["javascript","websocket","ws","promise","socket"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install promise-ws","imports":["import WebSocket from 'promise-ws'","const wss = await WebSocket.Server.create({ port: 8080 })","const ws = await WebSocket.create('ws://example.com')"]},{"cmd":"yarn add promise-ws","imports":[]},{"cmd":"pnpm add promise-ws","imports":[]}],"homepage":"https://github.com/cantonjs/promise-ws#readme","github":"https://github.com/cantonjs/promise-ws","docs":null,"changelog":null,"pypi":null,"npm":"promise-ws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}