Method: Redis::Commands::Pubsub#subscribe
- Defined in:
- lib/redis/commands/pubsub.rb
#subscribe(*channels, &block) ⇒ Object
Listen for messages published to the given channels.
16 17 18 |
# File 'lib/redis/commands/pubsub.rb', line 16 def subscribe(*channels, &block) _subscription(:subscribe, 0, channels, block) end |