public Push(Channel channel, string event_, JObject payload) { _channel = channel; _event = event_; _payload = payload; _receivedResp = null; _afterHook = null; _recHooks = new List<RecHook>(); _sent = false; }
public Channel Chan(string topic, JObject payload) { var chan = new Channel(topic, payload, this); _channels.Add(chan); return chan; }
public void Remove(Channel chan) { _channels = _channels.Where(c => !c.IsMember(chan.Topic)).ToList(); }