ws breaking changes
Updated December 4, 2026
On this page
Latest version 8.23.1, released November 27, 2026. Source repository
Its 8.0.0 release requires Node.js 10.0.0 or later. Node.js end of life dates.
- From 7.5.3 to 8.23.1: 166 breaking changes in 14 versions.
- From 1.0.0 to 8.23.1: 470 breaking changes in 26 versions.
ws 8.23.1 breaking changes
- Behavior changed
Window bits values that do not match the RFC 7692 1*DIGIT rule are now rejected. Code that passes non-conforming window bits values must be changed to pass valid numeric values. github.com - Behavior changed
Sec-WebSocket-Version header values that do not match the RFC 6455 version grammar are now rejected. Code that sends non-conforming version values must be changed to send valid ones. github.com
ws 8.22.2 breaking changes
- Behavior changed
WebSocket
The userinfo part of the URL is now percent-decoded. Code relying on the previous undecoded userinfo may need adjusting. github.com
ws 8.22.1 breaking changes
- Behavior changed
Sender.frame
Sender.frame() now omits empty chunks from its output. Code that expects an empty chunk in the returned list should be checked. github.com
ws 8.21.1 breaking changes
- Default changed
maxBufferedChunks
The default value of maxBufferedChunks was reduced. If your code depends on the old default, set the option explicitly. github.com - Default changed
maxFragments
The default value of maxFragments was reduced. If your code depends on the old default, set the option explicitly. github.com
ws 8.17.0 breaking changes
- Default changed
allowSynchronousEvents
The allowSynchronousEvents option now defaults to true, which can change event timing for code that relied on the old default. Set the option explicitly to keep the previous behavior. github.com
ws 8.15.1 breaking changes
- Renamed
allowMultipleEventsPerMicrotask
The allowMultipleEventsPerMicrotask option was renamed to allowSynchronousEvents. Code using the old option name must switch to the new name. github.com
Older versions
21 older versions, each with its first changes. Sign up to see every change
Show 21 older versions
ws 8.14.0 breaking changes
- Behavior changed
Events are now emitted at most one per microtask. Code that assumed several events would fire in the same microtask may need to change. github.com
ws 8.7.0 breaking changes
- Behavior changed
The handshake now fails if the server's Upgrade response header does not case-insensitively match "websocket", where it previously succeeded. Code that relied on such responses being accepted must be checked. github.com - Behavior changed
When following a redirect from wss: to ws: on the same host, the Authorization and Cookie headers are no longer sent. Code that depends on those headers being forwarded on such redirects must be updated. github.com
ws 8.6.0 breaking changes
- Signature changed
FinishRequestCallback
Was type FinishRequestCallback = (request: IncomingMessage, websocket: WebSocket) => void; now type FinishRequestCallback = (request: ClientRequest, websocket: WebSocket) => void. npmjs.com - Signature changed
Server.addListener
Was addListener(event: "connection", cb: (client: InstanceType<T>, request: InstanceType<U>) => void): this addListener(event: "error", cb: (err: Error) => void): this; now addListener(event: "connection", cb: (websocket: InstanceType<T>... npmjs.com
And 11 more in this version.
ws 8.5.0 breaking changes
- Removed
ServerOptions.allowSynchronousEvents
ServerOptions.allowSynchronousEvents was removed in ws 8.5.0 npmjs.com - Removed
ServerOptions.autoPong
ServerOptions.autoPong was removed in ws 8.5.0 npmjs.com
And 16 more in this version.
ws 8.3.0 breaking changes
- Signature changed
PerMessageDeflateOptions.zlibDeflateOptions
Was zlibDeflateOptions?: {flush?: number | undefined; finishFlush?: number | undefined; chunkSize?: number | undefined; windowBits?: number | undefined; level?: number | undefined; memLevel?: number | undefined; strategy?: number |... npmjs.com - Signature changed
ServerOptions
Was interface ServerOptions; now interface ServerOptions<U extends typeof WebSocket = typeof WebSocket, V extends typeof IncomingMessage = typeof IncomingMessage>. npmjs.com
And 28 more in this version.
ws 8.2.3 breaking changes
- Behavior changed
perMessageDeflate.threshold
When context takeover is enabled, messages smaller than perMessageDeflate.threshold are now compressed. Code that relies on small messages being sent uncompressed should be checked. github.com
ws 8.2.0 breaking changes
- Removed
FinishRequestCallback
FinishRequestCallback was removed in ws 8.2.0 npmjs.com - Removed
Server
Server was removed in ws 8.2.0 npmjs.com
And 40 more in this version.
ws 8.0.0 breaking changes
- Removed
CLOSED
CLOSED was removed in ws 8.0.0 npmjs.com - Removed
CLOSING
CLOSING was removed in ws 8.0.0 npmjs.com
And 49 more in this version.
ws 7.5.3 breaking changes
- Behavior changed
WebSocketServer
Passing more than one of the noServer, server and port options now throws an error. Pass only one of them. github.com - Behavior changed
WebSocketServer.prototype.close
Connections can no longer be established once close() has been called on a WebSocketServer. github.com
ws 7.5.0 breaking changes
- Behavior changed
When an error such as a data framing error occurs, a close frame is now sent to the remote peer. Code that relied on no close frame being sent on errors should be reviewed. github.com - Behavior changed
If no close frame is received, the close code is now always 1006, even when the connection closes because of an error. Code that checks close codes after errors may see different values. github.com
ws 7.4.0 breaking changes
- Behavior changed
Properties that were writable are now read-only, so code that assigns to them may now throw or fail. Stop assigning to them. github.com - Behavior changed
binaryType
These properties now appear when enumerating the object, so code that iterates over keys or serializes the socket will see them. github.com
And 13 more in this version.
ws 7.3.0 breaking changes
- Signature changed
ClientOptions.agent
Was agent?: http.Agent; now agent?: Agent | undefined. npmjs.com - Signature changed
ClientOptions.family
Was family?: number; now family?: number | undefined. npmjs.com
And 71 more in this version.
ws 7.2.2 breaking changes
- Behavior changed
A server now closes the connection when it receives a non-masked frame, and a client closes it when it receives a masked frame. Code that relied on those frames being accepted must be changed. github.com
ws 7.2.0 breaking changes
- Removed
CloseEvent.type
CloseEvent.type was removed in ws 7.2.0 npmjs.com - Removed
OpenEvent.type
OpenEvent.type was removed in ws 7.2.0 npmjs.com
And 73 more in this version.
ws 7.0.0 breaking changes
- Removed
Node.js 6 is no longer supported. Upgrade the Node.js runtime before using this version. github.com - Removed
WebSocket
Passing url.Url objects to the WebSocket constructor is no longer supported. Pass a string URL instead. github.com
And 69 more in this version.
ws 6.0.0 breaking changes
- Removed
Code running on Node.js 4 can no longer use this release. Upgrade the runtime before updating. github.com - Removed
PerMessageDeflateOptions.level
The level option is no longer supported. Pass it inside zlibDeflateOptions instead. npmjs.com
And 10 more in this version.
ws 5.0.0 breaking changes
- Removed
Node.js versions below 4.5.0 are no longer supported. Upgrade the Node.js runtime before using this release. github.com - Behavior changed
The connection is no longer closed if the server does not agree to any of the client's requested subprotocols. Code that relied on the close must now check the negotiated protocol itself. github.com
And 1 more in this version.
ws 4.0.0 breaking changes
- Removed
bytesReceived
The non-standard bytesReceived attribute has been removed. github.com - Removed
protocolVersion
The non-standard protocolVersion attribute has been removed. github.com
And 18 more in this version.
ws 3.0.0 breaking changes
- Removed
Some events were removed in 3.0.0 and listeners for them will no longer fire. github.com - Removed
upgradeReq
The upgradeReq property is gone in 3.0.0, so code that reads it must be changed. github.com
And 4 more in this version.
ws 2.0.0 breaking changes
- Removed
Node.js versions before 4.5.0 are no longer supported; upgrade Node.js before using this release. github.com - Removed
Clients and servers using the Hixie-76 protocol no longer work. github.com
And 22 more in this version.
ws 1.0.0 breaking changes
- Removed
The built-in client was removed. Browser code should use the global WebSocket, or conditionally require ws on the server. github.com - Removed
The binary addons were removed, so installs no longer build them. Users who relied on them must opt in separately. github.com
And 1 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.