Example #1
0
 public void Close()
 {
     if (gatewaySocket != null && gatewaySocket.IsConnected == true)
     {
         gatewaySocket.Disconnect();
         gatewaySocket         = null;
         hasConnectedToGateway = false;
     }
 }
Example #2
0
 public void Close()
 {
     if (socket != null && socket.IsConnected == true)
     {
         socket.Disconnect();
         socket = null;
     }
 }
Example #3
0
 public void Disconnect()
 {
     socket?.Disconnect();
 }