예제 #1
0
        public void OnMessage(string message)
        {
            var content = "";
            var header  = Relay.ParseResponse(message, ref content);

            if (header == "pong")
            {
                ping = (DateTime.Now - pingTime).Milliseconds;
            }
        }
예제 #2
0
        public override void OnRawString(string message)
        {
            string content = "";
            var    header  = Relay.ParseResponse(message, ref content);

            if (header == "0")
            {
                return;
            }
            HandleMessage(header, content);
        }