/// <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()); } }