ws
WebSocket client and server library for Node.js.
ws is a WebSocket client and server library for Node.js. It implements the protocol on both sides and supports the permessage-deflate compression extension.
Worth knowing
The README states that the module does not work in the browser. Browser code uses the native WebSocket object, and the README names isomorphic-ws, an npm wrapper, for code that has to run in both places. Compression is disabled by default on the server, and the README notes that it adds overhead.
Identity
- Status
- Active
- Maintainer
- Einar Otto Stangvik3
- Maintained by
- Individual3
- First release
- 20114
Rendering and deploy
- Install with
- npm2
Releases
Adoption
Sources
- 2026-11-17: links, Written in, License, GitHub stars
api.github.com/repos/websockets/ws - 2026-11-17: links, Categories, Runtime, Install with
github.com/websockets/ws/blob/master/README.md - 2026-11-17: Maintainer, Maintained by
raw.githubusercontent.com/websockets/ws/master/LICENSE - 2026-11-17: First release
registry.npmjs.org/ws - 2026-11-17: Minimum runtime
github.com/websockets/ws/blob/8.23.0/package.json - 2026-11-17: Current major version, Last release
api.github.com/repos/websockets/ws/releases/latest - 2026-11-17: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/ws - 2026-11-17: Contributors
api.github.com/repos/websockets/ws/contributors?per_page=1 - 2026-11-17: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/ws