예제 #1
0
 private void websocketclientToServer_OnConnected(object sender, nsoftware.IPWorksWS.WebsocketclientConnectedEventArgs e)
 {
     log.Info("Client Connected. ConnectionID: " + e.Description);
 }
예제 #2
0
 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");
 }