websocket/_socket.py

The _socket.py file

websocket._socket.getdefaulttimeout()[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)[source]

Set the global timeout setting to connect.

Parameters

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