Class: ResourceMonitor::ResourceChannel

Inherits:
ApplicationCable::Channel
  • Object
show all
Defined in:
app/channels/resource_monitor/resource_channel.rb

Instance Method Summary collapse

Instance Method Details

#subscribedObject



3
4
5
6
# File 'app/channels/resource_monitor/resource_channel.rb', line 3

def subscribed
  stream_from "resources"
  ResourceMonitor.benchmark()
end