void wss_OnServerClientDisconnection(object sender, OnClientDisConnectArgs e) { Debug.WriteLine(""); Debug.WriteLine("Disconnected"); Debug.WriteLine("Handler: " + ((IXBaseSocket)sender).Alias); Debug.WriteLine("ClientGuid: " + e.XNode.ClientGuid); Debug.WriteLine(""); }
/// <summary> /// When a client disconnects tell the other clients about the Peer being lost /// </summary> /// <param name="sender"></param> /// <param name="onClientDisConnectArgs"></param> private void _OnClose(object sender, OnClientDisConnectArgs onClientDisConnectArgs) { this.NotifyPeerLost(); }
void wss_OnServerClientDisconnection(object sender, OnClientDisConnectArgs e) { try { Debug.WriteLine(""); Debug.WriteLine("Disconnected"); Debug.WriteLine("Handler: " + ((IXBaseSocket)sender).Alias); Debug.WriteLine("ClientGuid: " + e.Client.ClientGuid); Debug.WriteLine(""); } catch (Exception ex) { Debug.WriteLine(ex.Message); Debug.WriteLine(ex.StackTrace); } }