# ws

> Fast, thoroughly tested WebSocket client and server for Node.js

Source: https://talira.ai/catalog/ws-czd5ahm5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / websockets / servers](https://talira.ai/categories/libraries/websockets/servers), [libraries / websockets / clients](https://talira.ai/categories/libraries/websockets/clients), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [websockets](https://talira.ai/orgs/websockets.md)

ws is a WebSocket client and server implementation for [Node.js](https://talira.ai/catalog/node-js-6cbqj66f.md), simple to use and fast, and it passes the Autobahn test suite as both server and client. It speaks the HyBi drafts 07 to 17, supports the permessage-deflate compression extension, can share an existing HTTP or HTTPS server between several WebSocket servers, and exposes connections as Node.js streams. Browser code uses the native WebSocket object instead.

## Links

- GitHub: https://github.com/websockets/ws

## Problems it solves

- run a WebSocket server in Node.js
- connect to a WebSocket server from a Node.js backend
- broadcast messages to all connected WebSocket clients

## Features

- WebSocket server and client for Node.js
- passes the Autobahn test suite as server and client
- permessage-deflate compression, with tuning options
- attach to an external HTTP/S server, or share one between several servers
- client authentication, broadcast and round-trip-time examples
- Node.js streams API

## Limitations

- It doesn't work in the browser: browser clients use the native WebSocket object.[^1]

## Trust

Overall: 0.65 out of 1.
Signals: maintenance 0.79, adoption 0.87, momentum 0.64, community 0.94, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 29 commits in the last 90 days
- latest release 8.23.1 2 days ago
- 22.8k GitHub stars
- 225 contributors
- accepts sponsorship (Github)
- backed by websockets

## Related

- Works with [Node.js](https://talira.ai/catalog/node-js-6cbqj66f.md)

## Alternatives

- [Socket.IO](https://talira.ai/catalog/socket-io-npx78w1e.md): Bidirectional and low-latency communication for every platform

## Sources

[^1]: https://github.com/websockets/ws/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/websockets/ws/blob/master/LICENSE (checked 28 Nov 2026)
