wsproto icon indicating copy to clipboard operation
wsproto copied to clipboard

Sans-IO WebSocket protocol implementation

Results 18 wsproto issues
Sort by recently updated
recently updated
newest added

At the current time the events.py and frame_protocol.py files cannot be mypyc compiled. The former is probably due to Generic dataclasses and the latter is probably related to https://github.com/mypyc/mypyc/issues/721 -...

Hi :wave: I was trying to add a test on `uvicorn`, when `conn.receive_data()` was able to send a `RemoteProtocolError` without an error hint: https://github.com/encode/uvicorn/blob/22bd00eab6dfa7145618ce6cd1acfdffea8bbe6e/uvicorn/protocols/websockets/wsproto_impl.py#L89-L94 But the thing is... In the...

Proposed fix for https://github.com/python-hyper/wsproto/issues/182 Fail instead of silently reporting success when a local-only close code is specified.

I'm using `wsproto` in my library `httpx-ws`. One contributor reported in https://github.com/frankie567/httpx-ws/discussions/38, that the `data` property of `BytesMessage` is actually a `bytearray` at runtime, but it's typed as `bytes`. ##...

Currently, if you close a websocket with code 1006 (which is not allowed), the result is a 1000-code closure: https://github.com/python-hyper/wsproto/blob/main/src/wsproto/frame_protocol.py#L576-L577 I suspect this should instead be either a 1002 error...

I wasn't able to find anything in the documentation about when `ConnectionState` changes, especially for the case where remote is initiating `CloseConnection`. It's significant in light of the recent change...

Reason added for Informational response to socket connection upgrade. This ensures backwards compatibility for older socket libraries like: OCaml/websokets

Please update the CHANGELOG.rst with the latest changes so that any repositories can receive all the updates. Especially since the h11 dependency package has been updated.