Class: LogChannel

Inherits:
ApplicationCable::Channel show all
Defined in:
app/channels/log_channel.rb

Instance Method Summary collapse

Instance Method Details

#keep_aliveObject



8
9
10
# File 'app/channels/log_channel.rb', line 8

def keep_alive
  $monitoring_keep_alive = Time.zone.now.to_i
end

#subscribedObject



4
5
6
# File 'app/channels/log_channel.rb', line 4

def subscribed
  stream_from 'log_channel'
end