Releases: tarasko/picows
Releases · tarasko/picows
1.14.0 (2026-02-19)
- WSTransport.wait_disconnected raises WSError exception if disconnect was cause by protocol parsing error.
- Transfer user exception from on_ws_disconnected to wait_disconnected on the client side
- Expand 'Exceptions handling' topic guide to explain how exceptions are transferred from user callbacks to wait_disconnected
1.13.1 (2026-02-15)
- Add more examples and update docs
1.13.0 (2026-02-14)
- #23: add support for SOCKS4, SOCKS5, HTTP proxies (no support for HTTPS proxy yet)
1.12.0 (2026-02-11)
- #71: add support for HTTP redirects
- Following discussion #68 added raw_header, raw_body and response attributes to WSError exception.
- Added additional checks for URL and WSInvalidURL exception
- Some non-latency critical code has been "de-cythonized" for better debugging experience.
- WSUpgradeRequest, WSUpgradeResponse, WSUpgradeResponseWithListener moved to a pure python module
- Mark picows extension module freethreading compatible
If your picows imports break after upgrading to 1.12.0 make sure you are importing from the package level.
Correct:
from picows import WSListener, WSFrame, WSUpgradeResponse
Wrong:
from picows.picows import WSListener, WSFrame, WSUpgradeResponse
The only exception to this are Cython definitions. You still have to cimport them from picows.picows
from picows.picows cimport WSListener, WSFrame
1.11.1 (2026-02-05)
- Fix accidentally forgotten -O2 optimization flag
1.11.0 (2026-02-04)
- #72: fixed possible memory leak due to never deleted child loggers
- Added faster versions of _mask_payload using sse2/avx2/avx512/neon intrinsics
- Switched to using BufferedProtocol for uvloop
1.10.2 (2026-01-04)
1.10.1 (2025-08-23)
- #57: fix plain WSTransport.send does not produce 'on_ws_disconnected' event in case of errors
1.10.0 (2025-08-23)
- Drop python 3.8 support
- Strip extensions on Linux and MacOS. Reduce package's size
1.9.0 (2025-06-05)
1.9.0 (2025-06-05)
- #47: Added WSTransport.send_reuse_external_bytearray to allow buffer sharing with msgspec or similar libraries
- #45: Clarified WSTransport.send behaviour in the reference
- #48: Re-raise exception from wait_disconnected when it is raised by user handler
- Fixed WSTransport.send_reuse_external_buffer, it was broken for client side websockets