The client.cs in Visual Studio.
private void SendToServer(string HeartRate) { SetHRTest(HeartRate); try { s = client.
I think it's the fact that you put all the server stuff in the Update. Which means it'll get called every frame. Which is a lot.
You should probably put all this in a separate method and call that from the client.