예제 #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();
 }