mickomagallanes / kucoin-futures-node-api

Node.js KuCoin Futures API Wrapper/SDK
https://www.npmjs.com/package/kucoin-futures-node-api
15 stars 9 forks source link

Websocket reconnecting after failure #9

Open heekah7 opened 2 years ago

heekah7 commented 2 years ago

Hi, I think we needed web socket reconnection upon failure badly, as order book will fails sometimes.

tuloski commented 1 year ago

Yes I agree. I'm opening 4 ws and statistically in around half an hour at least one fails and it doesn't reconnect. So annoying.

tuloski commented 1 year ago

I forked and modified to: -handle disconnection and automatic reconnect -ws is separate class now which can be instantiated multiple times -each ws now supports multiple topic subscription -working but probably not 100% right now

https://github.com/tuloski/kucoin-futures-node-api