示例#1
0
        private void OnStompCommand_Connect(StompServerClient client, StompMessage message)
        {
            if (StompLogger.CanLogDebug)
            {
                StompLogger.LogDebug(client.ToString() + " connected with session-id " + client.SessionId.ToString());
            }

            StompMessage result = new StompMessage("CONNECTED");

            result["session-id"] = client.SessionId.ToString();

            client.Send(result);
        }
示例#2
0
        private void OnStompCommand_Connect(StompServerClient client, StompMessage message)
        {
            if (StompLogger.CanLogDebug)
                StompLogger.LogDebug(client.ToString() + " connected with session-id " + client.SessionId.ToString());

            StompMessage result = new StompMessage("CONNECTED");
            result["session-id"] = client.SessionId.ToString();

            client.Send(result);
        }