AspComet.MessageHandlers.MetaHandshakeHandler.GetSuccessfulResponse C# (CSharp) Method

GetSuccessfulResponse() private static method

private static GetSuccessfulResponse ( Message request, IClient client ) : Message
request Message
client IClient
return Message
        private static Message GetSuccessfulResponse(Message request, IClient client)
        {
            // The handshaks success response is documented at
            // http://svn.cometd.org/trunk/bayeux/bayeux.html#toc_50

            Message message = new Message
            {
                channel = request.channel,
                version = "1.0",
                supportedConnectionTypes = new[] { "long-polling" },
                clientId = client.ID,
                successful = true,
                id = request.id,
            };

            message.SetAdvice("reconnect", "retry");

            return message;
        }