private void Message(object sender, DdpMessage e) { switch (e.Msg) { case "nosub": HandleNoSub(e.Get<NoSubModel>()); break; case "ready": SubReadyModel ready = e.Get<SubReadyModel>(); if (ready.Subs.Contains(Id)) HandleReady(); break; } }
private void OnMessage(object sender, DdpMessage e) { Logs.Debug(e.Body.ToString()); }