---
title: "websockets 17.4 Breaking Changes on PyPI | Since.dev"
description: "What each websockets release removed, renamed or changed: 278 breaking changes in 11 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/websockets
last_updated: 2026-12-04
---

# websockets breaking changes

websockets 17.4 (October 30, 2026) is its newest release with breaking changes, 2 of them. The first: Removed websockets.asyncio.connection.Connection.recv_exc. Every breaking API change we have recorded in websockets on PyPI: 278 breaking changes in 11 versions. Below, its 11 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `17.4`, released October 30, 2026. [Source repository](https://github.com/python-websockets/websockets)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [16.1](#v-16-1) to [17.4](#v-17-4): 87 breaking changes in 4 versions.
- From [11.0](#v-11-0) to [17.4](#v-17-4): 269 breaking changes in 10 versions.

## websockets 17.4 breaking changes

websockets 17.4, released October 30, 2026: 2 breaking changes.

- **Removed** `websockets.asyncio.connection.Connection.recv_exc`  

Connection.recv_exc was removed in websockets 17.4 [pypi.org](https://pypi.org/project/websockets/17.4/)
- **Renamed** `websockets.asyncio.connection.Connection.set_recv_exc`  

Use Connection.set_connection_exc instead. [pypi.org](https://pypi.org/project/websockets/17.4/)

## websockets 17.1 breaking changes

websockets 17.1, released August 26, 2026: 9 breaking changes.

- **Renamed** `websockets.asyncio.client.connect.__await_impl__`  

Use websockets.asyncio.client.connect.connect instead. [pypi.org](https://pypi.org/project/websockets/17.1/)
- **Renamed** `websockets.connect.__await_impl__`  

Use websockets.connect.connect instead. [pypi.org](https://pypi.org/project/websockets/17.1/)
- **Signature changed** `websockets.sync.client.ClientConnection.__enter__`  

Was def \_\_enter\_\_(self) -> Self; now def \_\_enter\_\_(self) -> ClientConnection. [pypi.org](https://pypi.org/project/websockets/17.1/)
- **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](https://pypi.org/project/websockets/17.1/)
- **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](https://pypi.org/project/websockets/17.1/)
- **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](https://pypi.org/project/websockets/17.1/)
- **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](https://pypi.org/project/websockets/17.1/)
- **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](https://pypi.org/project/websockets/17.1/)
- **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](https://pypi.org/project/websockets/17.1/)

## websockets 17.0.1 breaking changes

websockets 17.0.1, released July 31, 2026: 30 breaking changes.

- **Removed** `websockets.asyncio.server.serve.__aenter__`  

websockets.asyncio.server.serve.\_\_aenter\_\_ was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)
- **Removed** `websockets.asyncio.server.serve.__aexit__`  

websockets.asyncio.server.serve.\_\_aexit\_\_ was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)
- **Removed** `websockets.asyncio.server.serve.__await__`  

websockets.asyncio.server.serve.\_\_await\_\_ was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)
- **Removed** `websockets.asyncio.server.serve.__await_impl__`  

websockets.asyncio.server.serve.\_\_await_impl\_\_ was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)
- **Removed** `websockets.asyncio.server.serve.__init__`  

websockets.asyncio.server.serve.\_\_init\_\_ was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)
- **Removed** `websockets.asyncio.server.serve.create_server`  

websockets.asyncio.server.serve.create_server was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)
- **Removed** `websockets.asyncio.server.serve.server`  

websockets.asyncio.server.serve.server was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)
- **Removed** `websockets.serve.__aenter__`  

websockets.serve.\_\_aenter\_\_ was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)
- **Removed** `websockets.serve.__aexit__`  

websockets.serve.\_\_aexit\_\_ was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)
- **Removed** `websockets.serve.__await__`  

websockets.serve.\_\_await\_\_ was removed in websockets 17.0.1 [pypi.org](https://pypi.org/project/websockets/17.0.1/)

And 20 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## websockets 17.0 breaking changes

websockets 17.0, released July 29, 2026: 46 breaking changes.

- **Removed** `websockets.asyncio.async_timeout`  

websockets.asyncio.async_timeout was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)
- **Removed** `websockets.asyncio.client.connect.__iter__`  

websockets.asyncio.client.connect.\_\_iter\_\_ was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)
- **Removed** `websockets.asyncio.client.connect.connection_kwargs`  

websockets.asyncio.client.connect.connection_kwargs was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)
- **Removed** `websockets.asyncio.client.connect.protocol_factory`  

websockets.asyncio.client.connect.protocol_factory was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)
- **Removed** `websockets.asyncio.compatibility`  

websockets.asyncio.compatibility was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)
- **Removed** `websockets.asyncio.server.serve.__iter__`  

websockets.asyncio.server.serve.\_\_iter\_\_ was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)
- **Removed** `websockets.connect.__iter__`  

websockets.connect.\_\_iter\_\_ was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)
- **Removed** `websockets.connect.connection_kwargs`  

websockets.connect.connection_kwargs was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)
- **Removed** `websockets.connect.protocol_factory`  

websockets.connect.protocol_factory was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)
- **Removed** `websockets.frames.CTRL_OPCODES`  

websockets.frames.CTRL_OPCODES was removed in websockets 17.0 [pypi.org](https://pypi.org/project/websockets/17.0/)

And 36 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## websockets 16.1 breaking changes

websockets 16.1, released July 10, 2026: 1 breaking change.

- **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](https://pypi.org/project/websockets/16.1/)

## websockets 16.0 breaking changes

websockets 16.0, released January 10, 2026: 68 breaking changes.

- **Removed** `websockets.asyncio.connection.Connection.fragmented_send_waiter`  

Connection.fragmented_send_waiter was removed in websockets 16.0 [pypi.org](https://pypi.org/project/websockets/16.0/)
- **Removed** `websockets.asyncio.connection.Connection.max_queue`  

Connection.max_queue was removed in websockets 16.0 [pypi.org](https://pypi.org/project/websockets/16.0/)
- **Removed** `websockets.asyncio.connection.Connection.pong_waiters`  

Connection.pong_waiters was removed in websockets 16.0 [pypi.org](https://pypi.org/project/websockets/16.0/)
- **Removed** `websockets.asyncio.connection.Connection.write_limit`  

Connection.write_limit was removed in websockets 16.0 [pypi.org](https://pypi.org/project/websockets/16.0/)
- **Removed** `websockets.legacy.framing.Data`  

websockets.legacy.framing.Data was removed in websockets 16.0 [pypi.org](https://pypi.org/project/websockets/16.0/)
- **Removed** `websockets.PayloadTooBig.cur_size`  

PayloadTooBig.cur_size was removed in websockets 16.0 [pypi.org](https://pypi.org/project/websockets/16.0/)
- **Removed** `websockets.Protocol.cur_size`  

Protocol.cur_size was removed in websockets 16.0 [pypi.org](https://pypi.org/project/websockets/16.0/)
- **Removed** `websockets.Protocol.max_size`  

Protocol.max_size was removed in websockets 16.0 [pypi.org](https://pypi.org/project/websockets/16.0/)
- **Removed** `websockets.sync.connection.Connection.pong_waiters`  

Connection.pong_waiters was removed in websockets 16.0 [pypi.org](https://pypi.org/project/websockets/16.0/)
- **Renamed** `websockets.asyncio.connection.Connection.abort_pings`  

Use Connection.terminate_pending_pings instead. [pypi.org](https://pypi.org/project/websockets/16.0/)

And 58 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Older versions

5 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### websockets 15.0 breaking changes

websockets 15.0, released February 16, 2025: 19 breaking changes.

- **Removed** `websockets.asyncio.client.connect.handshake_args`  

websockets.asyncio.client.connect.handshake_args was removed in websockets 15.0 [pypi.org](https://pypi.org/project/websockets/15.0/)
- **Removed** `websockets.ClientProtocol.wsuri`  

ClientProtocol.wsuri was removed in websockets 15.0 [pypi.org](https://pypi.org/project/websockets/15.0/)

And 17 more in this version.

### websockets 14.0 breaking changes

websockets 14.0, released November 9, 2024: 52 breaking changes.

- **Removed** `websockets.AbortHandshake`  

websockets.AbortHandshake was removed in websockets 14.0 [pypi.org](https://pypi.org/project/websockets/14.0/)
- **Removed** `websockets.basic_auth_protocol_factory`  

websockets.basic_auth_protocol_factory was removed in websockets 14.0 [pypi.org](https://pypi.org/project/websockets/14.0/)

And 50 more in this version.

### websockets 13.0 breaking changes

websockets 13.0, released August 20, 2024: 32 breaking changes.

- **Removed** `websockets.http.USER_AGENT`  

websockets.http.USER_AGENT was removed in websockets 13.0 [pypi.org](https://pypi.org/project/websockets/13.0/)
- **Removed** `websockets.http11.d`  

websockets.http11.d was removed in websockets 13.0 [pypi.org](https://pypi.org/project/websockets/13.0/)

And 30 more in this version.

### websockets 12.0 breaking changes

websockets 12.0, released October 21, 2023: 10 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](https://pypi.org/project/websockets/12.0/)
- **Removed** `websockets.sync.compatibility`  

websockets.sync.compatibility was removed in websockets 12.0 [pypi.org](https://pypi.org/project/websockets/12.0/)

And 8 more in this version.

### websockets 11.0 breaking changes

websockets 11.0, released April 2, 2023: 9 breaking changes.

- **Removed** `websockets.client.ClientConnection`  

websockets.client.ClientConnection was removed in websockets 11.0 [pypi.org](https://pypi.org/project/websockets/11.0/)
- **Removed** `websockets.server.ServerConnection`  

websockets.server.ServerConnection was removed in websockets 11.0 [pypi.org](https://pypi.org/project/websockets/11.0/)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
