Represents a PONG command.
Inheritance: Message
Esempio n. 1
0
        /// <summary>
        /// Send a reply to a ping command.
        /// </summary>
        /// <param name="rawData">The raw ping command.</param>
        private void ReplyToPing(string rawData)
        {
            PongMessage pongMessage = new PongMessage(string.Empty);

            if (pongMessage.TryParse(rawData).Success)
            {
                this.Send(pongMessage.ToString());
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Send a reply to a ping command.
 /// </summary>
 /// <param name="rawData">The raw ping command.</param>
 private void ReplyToPing(string rawData)
 {
     PongMessage pongMessage = new PongMessage(string.Empty);
     if (pongMessage.TryParse(rawData).Success)
     {
         this.Send(pongMessage.ToString());
     }
 }