Skip to content

Releases: frankie567/httpx-ws

v0.7.1

04 Jan 13:33
v0.7.1
10bb1b3
Compare
Choose a tag to compare

Bump version 0.7.0 → 0.7.1

Bug fixes and improvements

  • Fix ASGIWebSocketAsyncNetworkStream implementation to avoid async tasks issues. Thanks @graingert 🎉

v0.7.0

07 Dec 12:37
v0.7.0
e144d2a
Compare
Choose a tag to compare

Bump version 0.6.2 → 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 🎉

v0.6.2

07 Oct 08:39
v0.6.2
dff03d5
Compare
Choose a tag to compare

Bump version 0.6.1 → 0.6.2

Bug fixes and improvements

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

v0.6.1

05 Oct 07:28
v0.6.1
dfc2719
Compare
Choose a tag to compare

Bump version 0.6.0 → 0.6.1

Bug fixes

v0.6.0

05 Apr 06:43
v0.6.0
940c9ad
Compare
Choose a tag to compare

Bump version 0.5.2 → 0.6.0

Breaking changes

Note

If you only use the connect_ws and aconnect_ws functions, you don't need to change anything.

Improvements

v0.5.2

19 Mar 08:22
v0.5.2
b213579
Compare
Choose a tag to compare

Bump version 0.5.1 → 0.5.2

Bug fixes

  • Set anyio dependency lower bound version to >4

v0.5.1

22 Feb 16:04
v0.5.1
2f6d76a
Compare
Choose a tag to compare

Bump version 0.5.0 → 0.5.1

Bug fixes and improvements

  • Always disable automatic keepalive ping when using ASGI transport. Thanks @dmontagu and @Kludex 🎉
  • Bump dependencies:

v0.5.0

09 Feb 19:29
v0.5.0
69425c6
Compare
Choose a tag to compare

Bump version 0.4.3 → 0.5.0

New features

Breaking changes

  • WebSocketSession and AsyncWebSocketSession are now context managers. If you were using them directly instead of relying on connect_ws and aconnect_ws, you'll have to adapt your code accordingly:
with WebSocketSession(...) as session:
    ...

async with AsyncWebSocketSession(...) as session:
    ...
  • AsyncWebSocketSession.receive_* methods may now raise TimeoutError instead of asyncio.TimeoutError:

Before

try:
    event = await ws.receive(timeout=2.)
except asyncio.TimeoutError:
    print("No event received.")
except WebSocketDisconnect:
    print("Connection closed")

After

try:
    event = await ws.receive(timeout=2.)
except TimeoutError:
    print("No event received.")
except WebSocketDisconnect:
    print("Connection closed")

v0.4.3

04 Dec 08:44
v0.4.3
269b402
Compare
Choose a tag to compare

Bump version 0.4.2 → 0.4.3

Bug fixes & improvements

  • Fix #57: compatibility with httpx>=0.25.2
  • Fix #56: ASGIWebSocketTransport returns the correct response from server when opening connection, allowing proper support of subprotocols.

v0.4.2

27 Sep 06:57
v0.4.2
1e1c252
Compare
Choose a tag to compare

Bump version 0.4.1 → 0.4.2

Bug fixes

  • Fix anyio start_blocking_portal import. Thanks @maparent 🎉
  • Fix #40: handle large message buffering
  • Fix #34: handle subprotocols corrrectly in ASGIWebSocketTransport