Skip to content

Releases: tarasko/picows

1.7.2 (2024-12-13)

13 Dec 10:57
Compare
Choose a tag to compare
  • #27: Type stubs are missing return type annotations
  • #28: New logo, credits to @River-Shi
  • Fix lint warnings, more rigorous CI checks

1.7.1 (2024-11-27)

27 Nov 08:49
Compare
Choose a tag to compare
  • Added extra_headers argument to ws_connect (@Tapanhaz)
  • Added request/response attributes to WSTransport. They can be used to access headers after successful negotiation
  • listener_factory passed to ws_create_server can now return WSUpgradeResponseWithListener to customize upgrade responses
  • Added pyi stub and typed.py (@dimitrivinet)

1.6.0 (2024-10-15)

15 Oct 13:05
Compare
Choose a tag to compare
  • Added optional automatic replies to incoming PING messages, enabled by default
  • Added auto_ping_strategy argument to ws_connect/ws_create_server that controls when pings are sent
  • Added new topic guides to the documentation

1.5.0 (2024-10-10)

10 Oct 15:58
Compare
Choose a tag to compare
  • Added WSTransport.measure_roundtrip_time method + example

1.4.1 (2024-10-08)

08 Oct 12:01
Compare
Choose a tag to compare
  • Log disconnect due to no PONG reply on INFO level
  • Make WSFrame string representation more descriptive
  • Fix minor mistakes in documentation

1.4.0 (2024-10-07)

07 Oct 20:10
Compare
Choose a tag to compare
  • Added optional automatic ping-pong mechanism to detect broken connection
  • Added an option to WSTransport.disconnect to disconnect immediately without flushing send buffers
  • Re-structured documentation, added 'Topic guides' section

1.3.0 (2024-10-01)

01 Oct 11:53
Compare
Choose a tag to compare
  • Change WSUpgradeRequest.headers type from Dict to CIMultiDict
  • Fix: ws_connect is ignoring URI query parameters
  • Fix: WSUpgradeRequest.version field is always None

1.2.2 (2024-09-13)

12 Sep 23:53
Compare
Choose a tag to compare
  • Fix: picows wasn't working on windows with asyncio and python<=3.10 because data_received callback gets bytearray object instead of bytes.
  • Fix: ws_connect was throwing TimeoutError on handshake timeouts, changed to asyncio.TimeoutError just to be consistent with the rest asyncio behaviour

1.2.1 (2024-09-11)

11 Sep 16:38
Compare
Choose a tag to compare
  • Optimization: Internal memory buffers were calling PyMem_Realloc too often

1.2.0 (2024-09-05)

05 Sep 15:23
Compare
Choose a tag to compare
  • Optimization: use direct send syscall for plain sockets, forward data to underlying transport only on EWOULDBLOCK.
  • Optimization: disable usage of BufferedProtocol because profiler showed that it is slower than regular data_received