Packages

ws

8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed

Your version

7.0.0

major30 Apr 2019Where it was published

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.Url instances in the WebSocket constructor (692d7b47).

  • Breaking

    The behavior of WebSocket#{p{i,o}ng,send}() has changed when the readyState attribute is not OPEN

Security

3 advisories affect 7.0.0; 7.5.11 fixes them

Release note

Breaking changes

  • Breaking

    Dropped support for Node.js 6 (1e6999b).

  • Breaking

    Dropped support for url.Url instances in the WebSocket constructor
    (692d7b4).

  • Breaking

    The behavior of WebSocket#{p{i,o}ng,send}() has changed when the
    readyState attribute is not OPEN (#1532)

    • If the readyState attribute is CONNECTING, an exception is thrown.

    • If the readyState attribute is CLOSING or CLOSED

      • The bufferedAmount attribute is increased by the length of the data
        argument in bytes.

      • If provided, the callback function is called with an error.

      • No exception is thrown even if the callback function 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.