Open CyrilleBoullier opened 4 years ago
Is the branch feature/asyncio still active with developments?
Hello! I developed an async websocket lib for binance which reconnects automatic: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api Best regards, Oliver
Hello,
I'm using the branch feature/asyncio and it works well.
However, due to binance deconneciton of the websocket, I sometime recieved following messages:
and it seems that the API does not reconnect correctly.
I tried to reproduce it using following snippet:
import asyncio
from binance import AsyncClient, BinanceSocketManager
import logging from logs_management import logToConsole logToConsole(logging.INFO)
loop = None
async def main(): global loop
if name == "main":
The API tries to reconnect, I see the following line in DEBUG mode: 'websocket btcusdt@aggTrade reconnecting 4 reconnects left'
but it never manages to reconnect and the loop continues to write "doing a sleep" with nothing else.
investing in the file websocket.py, it seems that the line
'asyncio.sleep(reconnect_wait)'
never finish.
Could you please inestigate and help me to fix this issue?
Thanks a lot, Cyrille.
Environment (please complete the following information):