Class: HeapPeriscopeUi::RuntimeStatsChannel

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

Instance Method Summary collapse

Instance Method Details

#subscribedObject



3
4
5
6
7
# File 'app/channels/heap_periscope_ui/runtime_stats_channel.rb', line 3

def subscribed
  # stream_from "some_channel" # Or use stream_for for specific models
  stream_from "heap_periscope_runtime_stats" # A general stream name
  # You could also use stream_for if you want to scope stats, e.g., per process_id
end

#unsubscribedObject



9
10
11
# File 'app/channels/heap_periscope_ui/runtime_stats_channel.rb', line 9

def unsubscribed
  # Any cleanup needed when channel is unsubscribed
end