Method: Vines::Cluster::PubSub#add_node
- Defined in:
- lib/vines/cluster/pubsub.rb
#add_node(domain, node) ⇒ Object
Create a pubsub topic (a.k.a. node), in the given domain, to which messages may be published. The domain argument will be one of the configured pubsub subdomains in conf/config.rb (e.g. games.wonderland.lit, topics.wonderland.lit, etc).
17 18 19 |
# File 'lib/vines/cluster/pubsub.rb', line 17 def add_node(domain, node) redis.sadd("pubsub:#{domain}:nodes", node) end |