Overview of httpx-ws features
mainhttpx-ws provides WebSocket support for the HTTPX library. Key features include:
- Sync and async clients: Support for both synchronous and asynchronous workflows.
- Data helpers: Built-in methods to easily send and receive
text,binary, andJSONdata. - Automatic lifecycle management: Handles automatic ping/pong responses and automatic keepalive pings.
- Testing support: Includes an HTTPX transport specifically designed to test WebSockets defined in ASGI applications.
- Async runtime support: Uses
AnyIOto provide support for bothasyncioandTrioruntimes.