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