This project is read-only.

Problem with loop sending data at a 5Hz rate, really slow

May 4, 2015 at 8:07 PM
Edited May 4, 2015 at 8:08 PM
Hello everybody,

The title might not be appealing, let me explain :
I have a server sending electrical value for one or more sensors 5 times/seconds to the client. When the event websocket.DataReceived is triggered on the client side, I trigger another event with the name of the sensor and the electrical value to the GUI layer of my app and I display them. The problem is that after 2-3 minutes, the connection gets really slow, I receive data for 2 secondes then it freezes for 1 second, and I can't send another command from my client to the server through WebSocket. Is there any buffer that I have to empty sometimes or something like that ? Thanks you very much !

P.S. : my app is a Xamarin Forms App