Class: ActionCable::SubscriptionAdapter::Redis::Listener::SubscribedClient
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actioncable/lib/action_cable/subscription_adapter/redis.rb |
Class Method Summary
- .new(raw_client) ⇒ SubscribedClient constructor
Instance Method Summary
Constructor Details
.new(raw_client) ⇒ SubscribedClient
# File 'actioncable/lib/action_cable/subscription_adapter/redis.rb', line 213
def initialize(raw_client) @raw_client = raw_client end
Instance Method Details
#subscribe(*channel)
[ GitHub ]# File 'actioncable/lib/action_cable/subscription_adapter/redis.rb', line 217
def subscribe(*channel) send_command("subscribe", *channel) end
#unsubscribe(*channel)
[ GitHub ]# File 'actioncable/lib/action_cable/subscription_adapter/redis.rb', line 221
def unsubscribe(*channel) send_command("unsubscribe", *channel) end