Class: ActionCable::SubscriptionAdapter::AnyCable
- Inherits:
-
Base
- Object
- Base
- ActionCable::SubscriptionAdapter::AnyCable
- Defined in:
- lib/action_cable/subscription_adapter/any_cable.rb
Overview
AnyCable subscription adapter delegates broadcasts to AnyCable
Instance Method Summary collapse
- #broadcast(channel, payload) ⇒ Object
-
#initialize ⇒ AnyCable
constructor
A new instance of AnyCable.
- #shutdown ⇒ Object
Constructor Details
#initialize ⇒ AnyCable
Returns a new instance of AnyCable.
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 |
#shutdown ⇒ Object
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 |