Skip to content

Releases: frankie567/httpx-ws

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

v0.4.1

06 Jul 14:31
v0.4.1
e44e1fa
Compare
Choose a tag to compare

Bump version 0.4.0 → 0.4.1

Bug fixes

  • Fix import issue with httpcore>=0.17.3. Thanks @saforem2 🚀

v0.4.0

27 Jun 13:20
v0.4.0
f0e4d4b
Compare
Choose a tag to compare

Bump version 0.3.1 → 0.4.0

Breaking changes

  • Drop Python 3.7 support