Class: FederalOffense::ActionCable::InboxChannel

Inherits:
ActionCable::Channel::Base
  • Object
show all
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, message)
end

Instance Method Details

#subscribedObject



17
18
19
# File 'lib/federal_offense/action_cable.rb', line 17

def subscribed
  stream_from self.class.name
end

#unsubscribedObject



21
22
# File 'lib/federal_offense/action_cable.rb', line 21

def unsubscribed
end