We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3acf9a0 + 33aa58f commit 3ee20b5Copy full SHA for 3ee20b5
binance/websockets.py
@@ -66,9 +66,9 @@ class BinanceSocketManager(threading.Thread):
66
WEBSOCKET_DEPTH_10 = '10'
67
WEBSOCKET_DEPTH_20 = '20'
68
69
- _user_timeout = 30 * 60 # 30 minutes
+ DEFAULT_USER_TIMEOUT = 30 * 60 # 30 minutes
70
71
- def __init__(self, client):
+ def __init__(self, client, user_timeout=DEFAULT_USER_TIMEOUT):
72
"""Initialise the BinanceSocketManager
73
74
:param client: Binance API client
@@ -81,6 +81,7 @@ def __init__(self, client):
81
self._user_listen_key = None
82
self._user_callback = None
83
self._client = client
84
+ self._user_timeout = user_timeout
85
86
def _start_socket(self, path, callback, prefix='ws/'):
87
if path in self._conns:
0 commit comments