python-engineio icon indicating copy to clipboard operation
python-engineio copied to clipboard

DeprecationWarning: parameter 'timeout' of type 'float' is deprecated, please use 'timeout=ClientWSTimeout(ws_close=...)'

Open vlad-nn opened this issue 2 months ago • 0 comments

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=...)'

vlad-nn avatar Nov 27 '25 01:11 vlad-nn