while True:
tpool.starmap(get_data_from_websocket, task_list)
if wss.conn and wss.conn.connected.is_set():
time.sleep(5)
else:
wss = wss.reset()
time.sleep(10)
and when the connection is close
got unlimited print as below
INFO:btfxwss.client:reset(): Waiting for connection to be set up..
INFO:btfxwss.client:reset(): Waiting for connection to be set up..
INFO:btfxwss.client:reset(): Waiting for connection to be set up..
INFO:btfxwss.client:reset(): Waiting for connection to be set up..
INFO:btfxwss.client:reset(): Waiting for connection to be set up..
INFO:btfxwss.client:reset(): Waiting for connection to be set up..
what's wrong with my code,
or right way to reconnect?
and when the connection is close
got unlimited print as below
what's wrong with my code,
or right way to reconnect?