websocket-as-promised

JSON →
library 3.0.1 ·javascript
verified Jun 7, 2026

A WebSocket client library providing a Promise-based API for connecting, disconnecting, and messaging with servers. Version 3.0.1 is the latest stable release. It supports both browser and Node.js environments with ESM and CommonJS modules. Key differentiators include built-in TypeScript types, support for raw, JSON, and binary data, and a request/response pattern. The library is actively maintained and requires a global Promise constructor or polyfill for older environments.