void _websocket_Closed(Windows.Networking.Sockets.IWebSocket sender, Windows.Networking.Sockets.WebSocketClosedEventArgs args)
        {
            //System.Diagnostics.Debug.WriteLine(":: websocket closed");
            var ev = OnClosed;

            if (ev != null)
            {
                Task.Factory.StartNew(() => ev());
            }
        }
Пример #2
0
 private void WebSocket_Closed(Windows.Networking.Sockets.IWebSocket sender, Windows.Networking.Sockets.WebSocketClosedEventArgs args)
 {
     Debug.Log("WebSocket_Closed; Code: " + args.Code + ", Reason: \"" + args.Reason + "\"");
     // Add additional code here to handle the WebSocket being closed.
     if (this.messageWebSocket == sender)
     {
         CloseSocket();
     }
     socketConnected = false;
 }
Пример #3
0
 private void WebSocket_Closed(Windows.Networking.Sockets.IWebSocket sender, Windows.Networking.Sockets.WebSocketClosedEventArgs args)
 {
     Debug.WriteLine("WebSocket_Closed; Code: " + args.Code + ", Reason: \"" + args.Reason + "\"");
     // Add additional code here to handle the WebSocket being closed.
 }