Class: ActionCable::SubscriptionAdapter::Redis::Listener::SubscribedClient
- Inherits:
-
Object
- Object
- ActionCable::SubscriptionAdapter::Redis::Listener::SubscribedClient
- Defined in:
- lib/action_cable/subscription_adapter/redis.rb
Instance Method Summary collapse
-
#initialize(raw_client) ⇒ SubscribedClient
constructor
A new instance of SubscribedClient.
- #subscribe(*channel) ⇒ Object
- #unsubscribe(*channel) ⇒ Object
Constructor Details
#initialize(raw_client) ⇒ SubscribedClient
Returns a new instance of SubscribedClient.
215 216 217 |
# File 'lib/action_cable/subscription_adapter/redis.rb', line 215 def initialize(raw_client) @raw_client = raw_client end |
Instance Method Details
#subscribe(*channel) ⇒ Object
219 220 221 |
# File 'lib/action_cable/subscription_adapter/redis.rb', line 219 def subscribe(*channel) send_command("subscribe", *channel) end |
#unsubscribe(*channel) ⇒ Object
223 224 225 |
# File 'lib/action_cable/subscription_adapter/redis.rb', line 223 def unsubscribe(*channel) send_command("unsubscribe", *channel) end |