Error getting Ticks in C#
So i started making a test app that gets the ticks of the bear market (using as a base the sample app provided in the Api page), but the problem is that after a minute or so i stop receiving the ticks from the server. Tried sending a ping every 3 seconds to keep the connection open and now i get an exception from the WebSocket object saying that the WebSocket has a non valid state ('Aborted').
I´m using .Net 4.5.2 in VS2017
Thanks in advance
Comments
I am facing the same problem here. I'm new to websockets development, I'm using C# with ClientWebSocket class. Everything is running nice, but after about 2 minutes the connection gets aborted with no clue! I have no idea what is happening, is it a kind of authentication problem? I'd be greatful if someone show how to solve this.
Someone else had a similar problem. https://binary.vanillacommunity.com/discussion/444/calling-api-tick-stop-on-50-values#latest
I am using C# with WebSocketSharp-NonPreRelease available via nuget.
The websocket stays open for a long time unless there are network errors.
Nice! Thank you @jimmytee, for the answer. This one really solved my problem.
I've been absent for a long time but i appreciate the response as well! Thanks, @jimmytee!