class ActionCable::SubscriptionAdapter::Anycable
AnyCable
subscription adapter delegates broadcasts to AnyCable
Public Class Methods
new(*)
click to toggle source
# File lib/action_cable/subscription_adapter/any_cable.rb, line 10 def initialize(*) end
Public Instance Methods
broadcast(channel, payload)
click to toggle source
# File lib/action_cable/subscription_adapter/any_cable.rb, line 13 def broadcast(channel, payload) ::AnyCable.broadcast(channel, payload) end
shutdown()
click to toggle source
# File lib/action_cable/subscription_adapter/any_cable.rb, line 17 def shutdown # nothing to do # we only need this method for development, # 'cause code reloading triggers `server.restart` -> `pubsub.shutdown` end