websockets
websockets copied to clipboard
Library for building WebSocket servers and clients in Python
When using the asyncio client, the error message and exception raised is the same if the user provides an incorrect uri or if the server respondes with a 302 found...
I believe the [topic page "Memory and Buffers" in the documentation](https://websockets.readthedocs.io/en/stable/topics/memory.html#websockets-buffers) might need to be updated - in the end it says: > In the [threading](https://docs.python.org/3/library/threading.html#module-threading) implementation, there is no...
Hi, I'm using websockets with free-threading python (3.14rc3) - ie with GIL disabled - and I occasionally have this runtime error when closing a connection: ``` File "/home/isma/bigrob/bigrob/api/poly.py", line 801,...
Attempts to connect to a WebSocket server, served by FastAPI using the websockets package, fail. But it connects perfectly using aiohttp or wscat(npm) to the same server. ### A simple...
# Custom exponential backoff In asyncio client, there was introduced option to use an infinite asynchronous iterator to reconnect automatically on errors, more in [docs](https://websockets.readthedocs.io/en/stable/reference/asyncio/client.html). There were set constants for...
Hello, I've tested multiple websockets libraries in python to create clients. However each time I create websocket client it allocates ~1.5MB of memory. Is this behaviour expected? Running this code...