Httpx-ws

Latest version: v0.7.1

Safety actively analyzes 707283 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.7.1

Bug fixes and improvements
--------------------------

* Fix `ASGIWebSocketAsyncNetworkStream` implementation to avoid async tasks issues. Thanks graingert 🎉

0.7.0

New features
------------

* Allow to pass a custom `session_class` on `connect_ws`/`aconnect_ws` functions. Thanks GreyElaina 🎉

Breaking changes
----------------

* Drop Python 3.8 support.

Bug fixes and improvements
--------------------------

* Fix 29: prevent error when several tasks try to write simultaneously on the same websocket stream. Thanks GreyElaina 🎉
* Fix 90: don't use a blocking portal to run the ASGIWebSocketTransport. Thanks GreyElaina 🎉

0.6.2

Bug fixes and improvements
--------------------------

* Improve efficiency of `WebSocketSession` by reusing a single thread pool when waiting for messages. Thank you davidbrochart 🎉

0.6.1

Bug fixes
---------

* Fix (73) anyio misusages. Thanks agronholm 🎉
* Fix (74) unclosed anyio streams. Thanks agronholm 🎉
* Fix (76) memory leak with non-async WebSocketSession. Thanks ro-oliveira95 🎉

0.6.0

Breaking changes
----------------

* [`AsyncWebSocketSession`](https://frankie567.github.io/httpx-ws/reference/httpx_ws/#httpx_ws.AsyncWebSocketSession) and [`WebSocketSession`](https://frankie567.github.io/httpx-ws/reference/httpx_ws/#httpx_ws.WebSocketSession) no longer accept the `subprotocol` parameter. It's automatically set from the `response` headers (see below).

> [!NOTE]
> If you only use the `connect_ws` and `aconnect_ws` functions, you don't need to change anything.

Improvements
------------

* [`AsyncWebSocketSession`](https://frankie567.github.io/httpx-ws/reference/httpx_ws/#httpx_ws.AsyncWebSocketSession) and [`WebSocketSession`](https://frankie567.github.io/httpx-ws/reference/httpx_ws/#httpx_ws.WebSocketSession) now accepts the original HTTPX handshake response in parameter. Thanks WSH032 🎉

0.5.2

Bug fixes
---------

* Set `anyio` dependency lower bound version to `>4`

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.