websockets icon indicating copy to clipboard operation
websockets copied to clipboard

Library for building WebSocket servers and clients in Python

Results 106 websockets issues
Sort by recently updated
recently updated
newest added

When LoggerAdapter is utilized and DEBUG-level logs are activated, it results in the generation of an AttributeError exception. Similar to https://github.com/python-websockets/websockets/issues/1398, but on the server side. Seems this issue is...

enhancement

Hi, In the company I work for, we are building a software that acts as a man-in-the-middle between some hardware and a server it connects to. We plan to write...

documentation

I'm using: * Python: 3.12 * websockets: 12.0 When using the threading implementation like in this code: ```python import http from websockets.sync.server import serve, ServerConnection, Request, Response from websockets.http11 import...

bug

I've been on a bit of a journey to get here ([heres the origin](https://github.com/encode/uvicorn/discussions/2124)). I am writing a server application which receives client connections which can on occasion be from...

documentation

``` async def process_request(path, headers): return (200, [], b"Hello, world") async def main(): async with websockets.serve(connection, "localhost", 8000, process_request=process_request): await asyncio.Future() ```` The documentation for [process_request](https://websockets.readthedocs.io/en/stable/reference/asyncio/server.html#websockets.server.WebSocketServerProtocol.process_request) correctly says that the...

When the client disconnects just after setting `self.application_state = WebSocketState.CONNECTED`, subsequent `ws.close()` will fail at `.venv/lib/python3.11/site-packages/websockets/legacy/protocol.py:784` as `transfer_data_task` will not be set up. I suppose it should be guarded by...

bug

See https://github.com/python-websockets/websockets/actions/runs/4725358468/jobs/8383672459#step:5:27

bug

just because it is supposed to be in utf-8, doesn't mean I prefer it in that form. specifically, my usecase, is giving the data to orjson, and passing it around...

enhancement
high priority

See here: https://github.com/aaugustin/websockets/actions/runs/4587844594/jobs/8101658696#step:5:25

bug