promise-ws

JSON →
library 1.0.0-1 ·javascript maintenance
verified Jun 7, 2026

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.