{"library":"websocket-async","type":"library","category":null,"description":"An async/await WebSocket client for browsers. Version 1.3.0 provides a simple, promise-based interface for WebSocket connections using ES2017 async/await. The library wraps the native WebSocket API and offers methods like connect, send, receive, and disconnect. Unlike raw WebSocket, it queues incoming messages and allows asynchronous reading via receive() without event listeners. It supports reconnection and sends data synchronously while receiving asynchronously. The library is browser-only, has no dependencies, and is ESM-compatible.","language":"javascript","status":"active","version":"1.3.0","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install websocket-async","imports":["import { WebSocketClient } from 'websocket-async'","import { WebSocketClient } from 'websocket-async'","const { WebSocketClient } = await import('websocket-async')"]},{"cmd":"yarn add websocket-async","imports":[]},{"cmd":"pnpm add websocket-async","imports":[]}],"homepage":"https://github.com/jcao219/websocket-async","github":"https://github.com/jcao219/websocket-async","docs":null,"changelog":null,"pypi":null,"npm":"websocket-async","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}