It looks like you're new here. If you want to get involved, click one of these buttons!
while True:
count += 1
if count % 2 == 0:
if kws.is_connected():
pass
else:
logging.critical("### Connection Disconnected!!")
# kws.set_mode(kws.MODE_LTP, tokens)
# else:
# if kws.is_connected():
# logging.info("### Set mode to quote for all tokens")
# kws.set_mode(kws.MODE_QUOTE, tokens)
I have loaded WebSocket example module in its own thread using ThreadPoolExecutor. Do I need to give it lot of threads?
We need to see complete code, to comment on anything more.