Aymeric Augustin
Aymeric Augustin
I agree: this shouldn't happen.
Yes, this is a valid request. Do you have a suggestion for what an "easy to use API" would look like from your perspective?
The simplest API possible would be `websocket.latency`, returning the latency in seconds, measured during the last ping.
Related to #958.
Indeed there's no convenient way to disable it right now. The best workaround that I can offer right now is: ```python import websockets.http websockets.http.USER_AGENT = "" ``` This won't remove...
Could you alter the server as follows: ```python PAYLOAD = 1024 * 1024 * b"a" async def echo(websocket): while True: await websocket.send(PAYLOAD) await asyncio.sleep(0) # ensure we don't block the...
OK - that's what happens when you benchmark a library that implements compression vs. a library that doesn't. What if you disable compression in websockets with `connect(compression=None)`? There's a bunch...
Well I'm relieved to hear this. I was bracing for "cool, bro, now you're doing 42k/s instead of 40k/s; websocket-client still at 80k/s" :-)
Flagging as a documentation issue for adding to the FAQ.
Can you enable debug logs? https://websockets.readthedocs.io/en/stable/topics/logging.html?highlight=debug%20logs#configure-logging Then you should get logs.