ViewBlock / binance-api-node

:chart: A complete and heavily tested wrapper with typings for the Binance API.
657 stars 502 forks source link

WebSocket auto reconnect on disconnect would be very helpful. #621

Closed arreehm closed 1 year ago

arreehm commented 1 year ago

Websockets sometimes disconnects, but all we want to is to keep them open.

htotoo commented 1 year ago

For example the ws.candles don't reconnects. Indeed would be a life saver.

ne0c0de commented 1 year ago

I really don't understand how is the most popular nodejs library has doesn't have this feature. There are a lot of issues written on here but still no solution.

I think it's time to switch to another library..

balthazar commented 1 year ago

We already use reconnecting-websocket to handle websocket connections already. I'm guessing you guys should tweak the passed options (most notably the connectionTimeout in case you have spotty connections).