public void Send(string s)
 {
     statsSumary.AddBytesSent(s.Length);
     if (ws != null && ws.IsConnected)
     {
         ws.SendString(s);
     }
     else
     {
         DebugClient("not connected");
     }
 }