SendJson() public method

public SendJson ( object body ) : void
body object
return void
        public void Sub()
        {
            SubModel subModel = new SubModel
            {
                Id     = Id,
                Name   = Name,
                Params = Params
            };

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