示例#1
0
        public Push(Channel channel, string event_, JObject payload)
        {
            _channel = channel;
            _event = event_;
            _payload = payload;

            _receivedResp = null;
            _afterHook = null;
            _recHooks = new List<RecHook>();
            _sent = false;
        }
示例#2
0
 public Channel Chan(string topic, JObject payload)
 {
     var chan = new Channel(topic, payload, this);
     _channels.Add(chan);
     return chan;
 }
示例#3
0
 public void Remove(Channel chan)
 {
     _channels = _channels.Where(c => !c.IsMember(chan.Topic)).ToList();
 }