python-websockets / websockets

Library for building WebSocket servers and clients in Python
https://websockets.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
5.07k stars 506 forks source link

Unclear how to modify library settings #1386

Closed danielkoohmarey-bc closed 11 months ago

danielkoohmarey-bc commented 11 months ago

In the docs: https://github.com/python-websockets/websockets/blob/adfb8d69a7a1f6f4c8381c9e7182619d202c3cf2/docs/faq/misc.rst#L58

It is stated:

Not all libraries are as feature-complete as websockets. For a fair benchmark, you should disable features that the other library doesn't provide. Typically, you may need to disable: Compression: set compression=None Keepalive: set ping_interval=None UTF-8 decoding: send bytes rather than str

Where do we set all these options in the code?

danielkoohmarey-bc commented 11 months ago

(I found https://github.com/python-websockets/websockets/blob/adfb8d69a7a1f6f4c8381c9e7182619d202c3cf2/docs/topics/compression.rst#L29)