python-bittrex-websocket-aio icon indicating copy to clipboard operation
python-bittrex-websocket-aio copied to clipboard

Periodic "Bittrex connection successfully closed."

Open chrisghill opened this issue 5 years ago • 1 comments
trafficstars

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.

chrisghill avatar Dec 29 '19 19:12 chrisghill

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

slazarov avatar Dec 30 '19 05:12 slazarov