Kane610 / aiounifi

Asynchronous library to communicate with Unifi Controller
MIT License
57 stars 49 forks source link

Compress websocket data #600

Closed Kane610 closed 4 months ago

Kane610 commented 4 months ago

@bdraco suggests link saturation might be the cause of some disconnects, compressing websocket might alleviate this.

https://docs.aiohttp.org/en/stable/client_reference.html

compress (int) – Enable Per-Message Compress Extension support. 0 for disable, 9 to 15 for window bit support. Default value is 0. New in version 2.3.

According to https://websockets.readthedocs.io/en/stable/topics/compression.html a good value is 12