Class: ActionCable::SubscriptionAdapter::AnyCable

Inherits:
Base
  • Object
show all
Defined in:
lib/action_cable/subscription_adapter/any_cable.rb

Overview

AnyCable subscription adapter delegates broadcasts to AnyCable

Instance Method Summary collapse

Constructor Details

#initializeAnyCable



10
# File 'lib/action_cable/subscription_adapter/any_cable.rb', line 10

def initialize(*); end

Instance Method Details

#broadcast(channel, payload) ⇒ Object



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

def broadcast(channel, payload)
  ::AnyCable.broadcast(channel, payload)
end

#shutdownObject



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

def shutdown
  # nothing to do
  # we only need this method for development,
  # 'cause code reloading triggers `server.restart` -> `pubsub.shutdown`
end