getting EOF while reading from websocket in golang

In our application, we open a websocket, send a successful "AUTHORIZE" and then retrieve the "PROFITTABLE" in an infinite loop, evaluating the new deals and pausing for 15 seconds. After that the loop runs from the beginning again.
After about 2 hours we get an EOF from the websocket and after that the query of the Profittable does not return any results.
How can this error be fixed?



  • Do you allow for reconnect of the web socket stream when it gets disconnected either because of maintenance on the server side or network issues ?

Sign In or Register to comment.