socket.io-client breaking changes
socket.io-client 4.0.0 (March 10, 2021) is its newest release with breaking changes, 4 of them. The first: Signature changed Manager. Every breaking API change we have recorded in socket.io-client on npm: 18 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.8.4, released September 25, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.0.0 to 4.0.0: 4 breaking changes in 1 version.
- From 2.0.0 to 4.0.0: 17 breaking changes in 4 versions.
socket.io-client 4.0.0 breaking changes
- Signature changed
Manager
Was class Manager extends Emitter; now class Manager<ListenEvents extends EventsMap = DefaultEventsMap, EmitEvents extends EventsMap = ListenEvents> extends StrictEventEmitter<{}, {}, ManagerReservedEvents>. npmjs.com - Signature changed
Socket
Was class Socket extends Emitter; now class Socket<ListenEvents extends EventsMap = DefaultEventsMap, EmitEvents extends EventsMap = ListenEvents> extends StrictEventEmitter<ListenEvents, EmitEvents, SocketReservedEvents>. npmjs.com - Signature changed
Socket.emit
Was emit(ev: string, ...args: any[]): this; now emit<Ev extends EventNames<EmitEvents>>(ev: Ev, ...args: EventParams<EmitEvents, Ev>): this. npmjs.com - Signature changed
Socket.io
Was readonly io: Manager; now readonly io: Manager<ListenEvents, EmitEvents>. npmjs.com
socket.io-client 3.0.0 breaking changes
- Removed
pong
Latency must now be measured by emitting a ping with a callback, as shown in the guide. socket.io - Removed
Socket.binary
The Socket#binary() method is gone. Provide your own parser to cover that use case. github.com - Renamed
error
The Socket now emits a connect_error event instead of error, which is no longer a reserved event. Listen for connect_error instead of error. github.com - Renamed
io
The client is now imported as a named export, so default imports of socket.io-client must change. socket.io - Renamed
query
Credentials sent in the CONNECT packet must be passed with the auth option instead of query. socket.io - Behavior changed
The client no longer connects to the default namespace automatically. Connect to the namespaces you need explicitly. github.com - Behavior changed
Middleware errors are emitted as Error objects instead of before. Update handlers that expect the previous shape. github.com - Behavior changed
Events of the Manager are no longer emitted by the Socket. Listen for them on the Manager instance (socket.io) instead. github.com - Behavior changed
socket.emit
emit returns true instead of the socket, so chained emit calls must be split into separate statements. socket.io - Behavior changed
socket.on
Connection state events such as reconnect_attempt must be listened to on socket.io instead of the socket. socket.io
And 1 more in this version. Sign up to see every change
socket.io-client 3.0.0-rc3 breaking changes
- Renamed
ERROR
The ERROR name was renamed to CONNECT_ERROR. Update any references to the new name. github.com
socket.io-client 3.0.0-rc1 breaking changes
- Removed
The slim build was removed. Use the development build dist/socket.io.js or the production build dist/socket.io.min.js. github.com
socket.io-client 2.0.0 breaking changes
- Behavior changed
socket.id
socket.id values now have the namespace (nsp) prefix added. Code that compares, stores or parses socket.id may need to be updated. github.com
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.