ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
1.1.5 is the newest release of 1.x.
In short
1 fixed3 changed
Security
3 advisories affect 1.0.0; 1.1.5 fixes them
- HighDenial of Service in wsGHSA-5v72-xg48-5rpm · 4 Jun 2019Fixed in 1.1.5
- HighDoS due to excessively large websocket message in wsGHSA-6663-c963-2gqg · 18 Feb 2019Fixed in 1.1.1
- LowRemote Memory Disclosure in wsGHSA-2mhh-w6q8-5hxw · 18 Feb 2019Fixed in 1.0.1
Release note
Discontinued support for all node versions except for 0.12, 4.0 and 5.0. We should focus on the future and that will be Node 5 and ES6.
Removed the client code. It was simple wrapper that really doesn't belong in a full ledged node.js library. If you want browser support you could just conditionally import it the WebSocket server.
var WS = window.WebSocket || require('ws')Fixed a zlib issue that caused thrown errors.
Binary addons have been completely removed. Even as optional dependency, it seems that npm is just unable to properly handle the builds causing installations to fail and lead to massive developer issues. While the dependencies have been removed, you can still optionally install things. See github.com/websockets/ws for additional information.
So future.. Ideally I want to start rewriting parts of the library in ES6 and completely clean up the code base. Pull requests for this are encouraged and appreciated <3 as this takes a lot of time.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.