Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Example of recovery of the connection #24

Closed
stephencheng opened this issue Apr 27, 2021 · 1 comment
Closed

Example of recovery of the connection #24

stephencheng opened this issue Apr 27, 2021 · 1 comment

Comments

@stephencheng
Copy link

By any chance that an example of re-connect to the web socket server could be provided?

I am getting below exception very offten due to various of reasons:

github.com/go-numb/go-ftx@v0.0.0-20210404151642-7a310724075d/realtime/websocket.go:161: [ERROR]: msg error: read tcp 192.168.1.101:61155->104.18.27.153:443: read: operation timed out

Is this recoverable ? how ?

Thanks

@SC4RECOIN
Copy link
Contributor

you could capture realtime.ERROR like you would other responses like realtime.TRADES and attempt to reconnect

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants