slazarov / python-bittrex-websocket-aio

Python websocket for Bittrex (async).
http://python-bittrex-websocket-docs.readthedocs.io/en/latest/index.html#
MIT License
36 stars 13 forks source link

Periodic "Bittrex connection successfully closed." #17

Open chrisghill opened 4 years ago

chrisghill commented 4 years ago

First of all thanks for this library - very helpful. However I'm noticing that my connections periodically close without much information as to why. Its not that big of a deal, except I don't see a way to poll the connection object to make sure that it is still connected (https://github.com/slazarov/python-signalr-client/blob/master/signalr_aio/_connection.py).

Here is the log message I'm receiving:

2019-12-27 23:35:51 - bittrex_websocket.websocket_client - INFO - Bittrex connection successfully closed.

It also doesn't appear to auto-reconnect. I'm wondering if anybody using this library has found a simple solution to improve connection stability, or to recover failed/closed connections quickly and seamlessly.

slazarov commented 4 years ago

Hey, I no longer actively maintain the socket libraries but can you try handling it in def _connection_handler in websocket_client.py?