websocket/_socket.py

The _socket.py file

websocket._socket.getdefaulttimeout() int | float | None[source]

Get default timeout

Returns:

_default_timeout – Return the global timeout setting (in seconds) to connect.

Return type:

int or float

websocket._socket.setdefaulttimeout(timeout: int | float | None) None[source]

Set the global timeout setting to connect.

Parameters:

timeout (int or float) – default socket timeout time (in seconds)