trio-websocket icon indicating copy to clipboard operation
trio-websocket copied to clipboard

WebSocket client and server implementation for Python Trio

Results 25 trio-websocket issues
Sort by recently updated
recently updated
newest added

I'm seeing high CPU load of the server relative to my current implementation, which is running https://github.com/dpallot/simple-websocket-server via trio.run_sync_in_worker_thread(). The workload is many small messages, typically < 80 bytes, mostly...

Fixes #132 and #187 * Changes `open_websocket` to only raise a single exception, even when running under `strict_exception_groups=True` * [ ] Should maybe introduce special handling for `KeyboardInterrupt`s * If...

This code will fully lose the `TypeError` as the `__context__` from the exception, due to https://github.com/python-trio/flake8-async/issues/298 ```python async def test_user_exception_cause(nursery) -> None: async def handler(request): await request.accept() server = await...

I couldn't get the websocket connection to be accepted with trio-websocket. I chased down the problem to this line. https://github.com/python-hyper/wsproto/blob/7f5a75597ec5d47aa84fda2eeccc0b8532ce76c6/src/wsproto/handshake.py#L330 It should be `Upgrade: websocket` not `Upgrade: WebSocket` Turns out...

I encountered [this issue](https://github.com/python-trio/trio-websocket/issues/184) in my application and applied the following fix in my local fork. I am making the PR in case there is interest in applying this fix...