ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
7.5.14 is the newest release of 7.x.
In short
3 breaking
- Breaking
Dropped support for Node.js 6 (1e6999bb).
- Breaking
Dropped support for
url.Urlinstances in theWebSocketconstructor (692d7b47). - Breaking
The behavior of
WebSocket#{p{i,o}ng,send}()has changed when thereadyStateattribute is notOPEN
Security
3 advisories affect 7.0.0; 7.5.11 fixes them
- Highws: Memory exhaustion DoS from tiny fragments and data chunksGHSA-96hv-2xvq-fx4p · 15 Jun 2026Fixed in 7.5.11
- Highws affected by a DoS when handling a request with many HTTP headersGHSA-3h5v-q93c-6h6q · 17 Jun 2024Fixed in 7.5.10
- ModerateReDoS in Sec-Websocket-Protocol headerGHSA-6fc8-4gx4-v693 · 28 May 2021Fixed in 7.4.6
Release note
Breaking changes
- Breaking
Dropped support for Node.js 6 (1e6999b).
- Breaking
Dropped support for
url.Urlinstances in theWebSocketconstructor
(692d7b4). - Breaking
The behavior of
WebSocket#{p{i,o}ng,send}()has changed when thereadyStateattribute is notOPEN(#1532)If the readyState attribute is
CONNECTING, an exception is thrown.If the readyState attribute is
CLOSINGorCLOSEDThe
bufferedAmountattribute is increased by the length of thedata
argument in bytes.If provided, the
callbackfunction is called with an error.No exception is thrown even if the
callbackfunction is not provided.
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.