Gwupe.Cloud.Messaging.WebSocketMessageHandler.OnOpen C# (CSharp) Method

OnOpen() public method

public OnOpen ( WebSocketConnection aConnection ) : void
aConnection Bauglir.Ex.WebSocketConnection
return void
        public void OnOpen(WebSocketConnection aConnection)
        {
            this._connection = aConnection;
            try
            {
                Logger.Debug("Client : Made connection [" + aConnection.Client.Client.RemoteEndPoint + "]");
            }
            catch (Exception e)
            {
                // For some reason occassionally there is an exception on getting the remote endpoint
                Logger.Error("Failed to read the remote endpoint",e);
            }
        }