Class: FederalOffense::ActionCable::InboxChannel
- Inherits:
-
ActionCable::Channel::Base
- Object
- ActionCable::Channel::Base
- FederalOffense::ActionCable::InboxChannel
- Defined in:
- lib/federal_offense/action_cable.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.broadcast!(message: {reload: true}) ⇒ Object
13 14 15 |
# File 'lib/federal_offense/action_cable.rb', line 13 def self.broadcast!(message: {reload: true}) FederalOffense::Engine.cable_server.broadcast(name, ) end |
Instance Method Details
#subscribed ⇒ Object
17 18 19 |
# File 'lib/federal_offense/action_cable.rb', line 17 def subscribed stream_from self.class.name end |
#unsubscribed ⇒ Object
21 22 |
# File 'lib/federal_offense/action_cable.rb', line 21 def unsubscribed end |