private void websocketclientToServer_OnConnected(object sender, nsoftware.IPWorksWS.WebsocketclientConnectedEventArgs e) { log.Info("Client Connected. ConnectionID: " + e.Description); }
private void websocketclient1_OnConnected(object sender, nsoftware.IPWorksWS.WebsocketclientConnectedEventArgs e) { bConnect.Enabled = true; tbEcho.AppendText(e.StatusCode == 0 ? "Connected.\r\n" : "Failed to connect. Reason: " + e.Description + ".\r\n"); }