websocket-async
JSON →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.
Traffic · last 30 days stale · no recent hits
total hits 8
actors 2 distinct systems
last hit 18d ago Bingbot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany
Resources
packagewebsocket-async ↗