Пример #1
0
 protected override void OnError(ErrorEventArgs e)
 {
     log_.Error("error: " + e.ToString() + ": " + e.Message);
     if (!closed_)
     {
         try
         {
             Close();
         }
         catch (System.Exception)
         {
         }
     }
     EventHandler<ErrorEventArgs> handler = OnErrorEvent;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Пример #2
0
 private static void ErrorCallback(object sender, WebSocketSharp.ErrorEventArgs e)
 {
     Helpers.ConsolePrint("SOCKET", e.ToString());
 }
Пример #3
0
 private void OnWSError(object sender, WebSocketSharp.ErrorEventArgs e)
 {
     Program.log("ERROR", userpoint + " Remote Side Error :" + e.ToString());
     SafeCloseLocal();
     SafeCloseRemote();
 }
Пример #4
0
 protected override void OnError(WebSocketSharp.ErrorEventArgs e)
 {
     Program.log("ERROR", userpoint + " Local Side Error :" + e.ToString());
     SafeCloseLocal();
     SafeCloseRemote();
 }
Пример #5
0
 void ws_OnError(object sender, WebSocketSharp.ErrorEventArgs e)
 {
     UpdateListBox(DateTime.Now.ToString() + " ws_OnError says: " + e.ToString());
 }
Пример #6
0
 void WS_OnError(object sender, ErrorEventArgs e)
 {
     Console.WriteLine("Error: " + e.ToString());
 }
 void ws_OnError(object sender, ErrorEventArgs e)
 {
     UpdateListBox(DateTime.Now.ToString() + " ws_OnError says: " + e.ToString());
 }