websockets breaking changes
Updated December 4, 2026
On this page
Latest version 17.4, released October 30, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 16.1 to 17.4: 87 breaking changes in 4 versions.
- From 11.0 to 17.4: 269 breaking changes in 10 versions.
websockets 17.4 breaking changes
- Removed
websockets.asyncio.connection.Connection.recv_exc
Connection.recv_exc was removed in websockets 17.4 pypi.org - Renamed
websockets.asyncio.connection.Connection.set_recv_exc
Use Connection.set_connection_exc instead. pypi.org
websockets 17.1 breaking changes
- Renamed
websockets.asyncio.client.connect.__await_impl__
Use websockets.asyncio.client.connect.connect instead. pypi.org - Renamed
websockets.connect.__await_impl__
Use websockets.connect.connect instead. pypi.org - Signature changed
websockets.sync.client.ClientConnection.__enter__
Was def __enter__(self) -> Self; now def __enter__(self) -> ClientConnection. pypi.org - Signature changed
websockets.sync.client.connect
Was def connect(uri: str, *, sock: socket.socket | None = None, ssl: ssl_module.SSLContext | None = None, server_hostname: str | None = None, origin: Origin | None = None, extensions: Sequence[ClientExtensionFactory] | None = None... pypi.org - Signature changed
websockets.sync.client.unix_connect
Was def unix_connect(path: str | None = None, uri: str | None = None, **kwargs: Any) -> ClientConnection; now def unix_connect(path: PathLike | None = None, uri: str | None = None, *, legacy: bool | None = None, **kwargs: Any) ->... pypi.org - Signature changed
websockets.sync.server.unix_serve
Was def unix_serve(handler: Callable[[ServerConnection], None], path: str | None = None, **kwargs: Any) -> Server; now def unix_serve(handler: Callable[[ServerConnection], None], path: PathLike | None = None, **kwargs: Any) -> Server. pypi.org - Signature changed
websockets.unix_connect
Was def unix_connect(path: str | None = None, uri: str | None = None, **kwargs: Any) -> connect; now def unix_connect(path: PathLike | None = None, uri: str | None = None, **kwargs: Any) -> connect. pypi.org - Signature changed
websockets.unix_route
Was def unix_route(url_map: Map, path: str | None = None, **kwargs: Any) -> Server; now def unix_route(url_map: Map, path: PathLike | None = None, **kwargs: Any) -> Server. pypi.org - Signature changed
websockets.unix_serve
Was def unix_serve(handler: Callable[[ServerConnection], Awaitable[None]], path: str | None = None, **kwargs: Any) -> Server; now def unix_serve(handler: Callable[[ServerConnection], Awaitable[None]], path: PathLike | None = None... pypi.org
websockets 17.0.1 breaking changes
- Removed
websockets.asyncio.server.serve.__aenter__
websockets.asyncio.server.serve.__aenter__ was removed in websockets 17.0.1 pypi.org - Removed
websockets.asyncio.server.serve.__aexit__
websockets.asyncio.server.serve.__aexit__ was removed in websockets 17.0.1 pypi.org - Removed
websockets.asyncio.server.serve.__await__
websockets.asyncio.server.serve.__await__ was removed in websockets 17.0.1 pypi.org - Removed
websockets.asyncio.server.serve.__await_impl__
websockets.asyncio.server.serve.__await_impl__ was removed in websockets 17.0.1 pypi.org - Removed
websockets.asyncio.server.serve.__init__
websockets.asyncio.server.serve.__init__ was removed in websockets 17.0.1 pypi.org - Removed
websockets.asyncio.server.serve.create_server
websockets.asyncio.server.serve.create_server was removed in websockets 17.0.1 pypi.org - Removed
websockets.asyncio.server.serve.server
websockets.asyncio.server.serve.server was removed in websockets 17.0.1 pypi.org - Removed
websockets.serve.__aenter__
websockets.serve.__aenter__ was removed in websockets 17.0.1 pypi.org - Removed
websockets.serve.__aexit__
websockets.serve.__aexit__ was removed in websockets 17.0.1 pypi.org - Removed
websockets.serve.__await__
websockets.serve.__await__ was removed in websockets 17.0.1 pypi.org
And 20 more in this version. Sign up to see every change
websockets 17.0 breaking changes
- Removed
websockets.asyncio.async_timeout
websockets.asyncio.async_timeout was removed in websockets 17.0 pypi.org - Removed
websockets.asyncio.client.connect.__iter__
websockets.asyncio.client.connect.__iter__ was removed in websockets 17.0 pypi.org - Removed
websockets.asyncio.client.connect.connection_kwargs
websockets.asyncio.client.connect.connection_kwargs was removed in websockets 17.0 pypi.org - Removed
websockets.asyncio.client.connect.protocol_factory
websockets.asyncio.client.connect.protocol_factory was removed in websockets 17.0 pypi.org - Removed
websockets.asyncio.compatibility
websockets.asyncio.compatibility was removed in websockets 17.0 pypi.org - Removed
websockets.asyncio.server.serve.__iter__
websockets.asyncio.server.serve.__iter__ was removed in websockets 17.0 pypi.org - Removed
websockets.connect.__iter__
websockets.connect.__iter__ was removed in websockets 17.0 pypi.org - Removed
websockets.connect.connection_kwargs
websockets.connect.connection_kwargs was removed in websockets 17.0 pypi.org - Removed
websockets.connect.protocol_factory
websockets.connect.protocol_factory was removed in websockets 17.0 pypi.org - Removed
websockets.frames.CTRL_OPCODES
websockets.frames.CTRL_OPCODES was removed in websockets 17.0 pypi.org
And 36 more in this version. Sign up to see every change
websockets 16.1 breaking changes
- Signature changed
websockets.broadcast
Was def broadcast(connections: Iterable[Connection], message: DataLike, raise_exceptions: bool = False) -> None; now def broadcast(connections: Iterable[Connection], message: DataLike, raise_exceptions: bool = False, *, text: bool | None =... pypi.org
websockets 16.0 breaking changes
- Removed
websockets.asyncio.connection.Connection.fragmented_send_waiter
Connection.fragmented_send_waiter was removed in websockets 16.0 pypi.org - Removed
websockets.asyncio.connection.Connection.max_queue
Connection.max_queue was removed in websockets 16.0 pypi.org - Removed
websockets.asyncio.connection.Connection.pong_waiters
Connection.pong_waiters was removed in websockets 16.0 pypi.org - Removed
websockets.asyncio.connection.Connection.write_limit
Connection.write_limit was removed in websockets 16.0 pypi.org - Removed
websockets.legacy.framing.Data
websockets.legacy.framing.Data was removed in websockets 16.0 pypi.org - Removed
websockets.PayloadTooBig.cur_size
PayloadTooBig.cur_size was removed in websockets 16.0 pypi.org - Removed
websockets.Protocol.cur_size
Protocol.cur_size was removed in websockets 16.0 pypi.org - Removed
websockets.Protocol.max_size
Protocol.max_size was removed in websockets 16.0 pypi.org - Removed
websockets.sync.connection.Connection.pong_waiters
Connection.pong_waiters was removed in websockets 16.0 pypi.org - Renamed
websockets.asyncio.connection.Connection.abort_pings
Use Connection.terminate_pending_pings instead. pypi.org
And 58 more in this version. Sign up to see every change
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
websockets 15.0 breaking changes
- Removed
websockets.asyncio.client.connect.handshake_args
websockets.asyncio.client.connect.handshake_args was removed in websockets 15.0 pypi.org - Removed
websockets.ClientProtocol.wsuri
ClientProtocol.wsuri was removed in websockets 15.0 pypi.org
And 17 more in this version.
websockets 14.0 breaking changes
- Removed
websockets.AbortHandshake
websockets.AbortHandshake was removed in websockets 14.0 pypi.org - Removed
websockets.basic_auth_protocol_factory
websockets.basic_auth_protocol_factory was removed in websockets 14.0 pypi.org
And 50 more in this version.
websockets 13.0 breaking changes
- Removed
websockets.http.USER_AGENT
websockets.http.USER_AGENT was removed in websockets 13.0 pypi.org - Removed
websockets.http11.d
websockets.http11.d was removed in websockets 13.0 pypi.org
And 30 more in this version.
websockets 12.0 breaking changes
- Removed
websockets.legacy.compatibility.loop_if_py_lt_38
websockets.legacy.compatibility.loop_if_py_lt_38 was removed in websockets 12.0 pypi.org - Removed
websockets.sync.compatibility
websockets.sync.compatibility was removed in websockets 12.0 pypi.org
And 8 more in this version.
websockets 11.0 breaking changes
- Removed
websockets.client.ClientConnection
websockets.client.ClientConnection was removed in websockets 11.0 pypi.org - Removed
websockets.server.ServerConnection
websockets.server.ServerConnection was removed in websockets 11.0 pypi.org
And 7 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.