websockets
websockets copied to clipboard
Library for building WebSocket servers and clients in Python
How can nginx read the .sock file if websockets does not give it permission?
I am using `websockets==13.1` and have reviewed the documentation. The websockets library includes a keep-alive feature that sends an empty ByteFrame as a ping message. How can I modify the...
Hey Aymeric, I noticed that by this line https://github.com/python-websockets/websockets/blob/98f236f89529d317628fe8ee3d4d0564e675f68d/src/websockets/asyncio/client.py#L525 the full traceback of the current Exception is included in the log message, which looks confusing to me. Example ``` [2024-09-13...
While implementing an Asyncio server (with the new API) - I am unable to catch the InvalidMessage exception that can occur. It is correctly logged as an error, but then...
An upstream change in CPython >= 3.12 changes the behaviour of `asyncio.Server.serve_forever()` to wait for all clients to disconnect voluntarily before returning upon cancellation. There is discussion to change this...
Hi again, I implemented the connection tracking and graceful server shutdown procedure that I explained in [issue #1488](https://github.com/python-websockets/websockets/issues/1488#issuecomment-2778939350). ### Server shutdown behavior In the current version, the sync server does...
Ensures the sync connection is closed when the object is garbage collected. While in a perfect world, everyone would correctly use the context manager, I've found this is not the...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.22.0 to 2.23.3. Release notes Sourced from pypa/cibuildwheel's releases. v2.23.3 🛠 Dependency updates, including Python 3.13.3 (#2371) v2.23.2 🐛 Workaround an issue with pyodide builds when running...
## Scenario I have a /healthz endpoint on my websocket server, used as a kubernetes health check. ## What I expected to happen If the websocket connection upgrade headers aren't...