Method: Redis#subscribe
- Defined in:
- lib/redis.rb
#subscribe(*channels, &block) ⇒ Object
Listen for messages published to the given channels.
1974 1975 1976 1977 1978 |
# File 'lib/redis.rb', line 1974 def subscribe(*channels, &block) synchronize do |client| _subscription(:subscribe, channels, block) end end |