python-engineio
python-engineio copied to clipboard
DeprecationWarning: parameter 'timeout' of type 'float' is deprecated, please use 'timeout=ClientWSTimeout(ws_close=...)'
Is your feature request related to a problem? Please describe.
It would be nice to fix that annoying deprecation warning which appears in stdout each time AsyncClient object is created with default timeout settings.
Describe the solution you'd like
In BaseClient.__init__ method, the request_timeout arg is defined as request_timeout=5.
This causes the above warning. It would be nice to use ClientWSTimeout object instead of 5 literal.
Logs engineio\async_client.py:336: DeprecationWarning: parameter 'timeout' of type 'float' is deprecated, please use 'timeout=ClientWSTimeout(ws_close=...)'