Esempio n. 1
0
 private void OnClientDisconnect(ClientConnectionEventArgs eventArgs)
 {
     if (ClientDisconnected != null)
         ClientDisconnected(this, eventArgs);
 }
Esempio n. 2
0
 static void wsServer_ClientConnected(object sender, ClientConnectionEventArgs args)
 {
     _clients.Add(args.Client);
     Console.WriteLine("Client Connected: " + ((IPEndPoint)args.Client.Client.RemoteEndPoint).Address);
 }
Esempio n. 3
0
 static void wsServer_ClientDisconnected(object sender, ClientConnectionEventArgs args)
 {
     Console.WriteLine("Client Disconnected: " + ((IPEndPoint)args.Client.Client.RemoteEndPoint).Address + "\nReason: " + args.Message);
 }
Esempio n. 4
0
 private void _webSocket_ClientDisconnected(object sender, ClientConnectionEventArgs args)
 {
     _clients.Remove(args.Client);
 }