Ejemplo n.º 1
0
        public void Sub()
        {
            SubModel subModel = new SubModel
            {
                Id     = Id,
                Name   = Name,
                Params = Params
            };

            if (!_webSocket.IsAlive)
            {
                throw new InvalidOperationException("The DDP-Connection is not alive anymore");
            }
            _webSocket.SendJson(subModel);
        }
Ejemplo n.º 2
0
 public void PingServer(string id = null)
 {
     _webSocket.SendJson(new PingModel
     {
         Id = id
     });
 }