示例#1
0
 private void websocket_Error(object sender, SuperSocket.ClientEngine.ErrorEventArgs e)
 {
     HelperClass.addLog("Error thrown trying to open websocket : " + e.Exception.Message);
     Console.WriteLine("[" + DateTime.Now.ToString("HH:mm:ss") + "] Error thrown trying to open websocket : " + e.Exception.Message);
 }
示例#2
0
 private void websocket_Closed(object sender, EventArgs e)
 {
     HelperClass.addLog("Websocket closed");
     Console.WriteLine("[" + DateTime.Now.ToString("HH:mm:ss") + "] Websocket closed");
 }