VB
Size: a a a
VB
SS
D
D
async def connect_and_read_websocket():...
while True:
try:
logger.info("connecting to: %s", WS_URL)
w = await tornado.websocket.websocket_connect(WS_URL, connect_timeout=5, ping_interval=25)
logger.info("connected")
except Exception as ex:
logger.error("can't connect to websocket: %s", ex)
await asyncio.sleep(5)
continue
while True:
payload = await w.read_message()
AR
AR
AR
async def connect_and_read_websocket():...
while True:
try:
logger.info("connecting to: %s", WS_URL)
w = await tornado.websocket.websocket_connect(WS_URL, connect_timeout=5, ping_interval=25)
logger.info("connected")
except Exception as ex:
logger.error("can't connect to websocket: %s", ex)
await asyncio.sleep(5)
continue
while True:
payload = await w.read_message()
AR
A
AR
D
AR
AR