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); }
private void websocket_Closed(object sender, EventArgs e) { HelperClass.addLog("Websocket closed"); Console.WriteLine("[" + DateTime.Now.ToString("HH:mm:ss") + "] Websocket closed"); }