Module: ActionCable::SubscriptionAdapter::ChannelPrefix

Included in:
PostgreSQL, Redis
Defined in:
lib/action_cable/subscription_adapter/channel_prefix.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#broadcast(channel, payload) ⇒ Object



6
7
8
9
# File 'lib/action_cable/subscription_adapter/channel_prefix.rb', line 6

def broadcast(channel, payload)
  channel = channel_with_prefix(channel)
  super
end

#subscribe(channel, callback, success_callback = nil) ⇒ Object



11
12
13
14
# File 'lib/action_cable/subscription_adapter/channel_prefix.rb', line 11

def subscribe(channel, callback, success_callback = nil)
  channel = channel_with_prefix(channel)
  super
end

#unsubscribe(channel, callback) ⇒ Object



16
17
18
19
# File 'lib/action_cable/subscription_adapter/channel_prefix.rb', line 16

def unsubscribe(channel, callback)
  channel = channel_with_prefix(channel)
  super
end