Kucoin / kucoin-go-sdk

Go SDK for KuCoin API.
https://docs.kucoin.com
MIT License
113 stars 75 forks source link

reconnect to websocket server in case of timeout or abrupt disconnect #120

Closed journeytosilius closed 2 years ago

journeytosilius commented 2 years ago

How do you guys handle an abrupt disconnect form the websocket feed ? Ideally I would need to reconnect in case the connectiong gets dropped. I am recording to DB and the other day I found it was disconnected :443, had to restart it manually but the problem is that you lose data. Thanks

journeytosilius commented 2 years ago

I just got this again, but it's weird because it does not happen when forwarding messages but only when writing to a local db, do you remotely know why ? Probably not, but maybe you can gib some hint ? Thanks