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 216
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 220
def subscribe(*channel) send_command("subscribe", *channel) end
#unsubscribe(*channel)
[ GitHub ]# File 'actioncable/lib/action_cable/subscription_adapter/redis.rb', line 224
def unsubscribe(*channel) send_command("unsubscribe", *channel) end