Class: BrainzLab::Rails::Collectors::ActionCable

Inherits:
Base
  • Object
show all
Defined in:
lib/brainzlab/rails/collectors/action_cable.rb

Overview

Collects Action Cable WebSocket events This is a KEY differentiator - most APM tools have weak WebSocket support

Instance Attribute Summary

Attributes inherited from Base

#configuration

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from BrainzLab::Rails::Collectors::Base

Instance Method Details

#process(event_data) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/brainzlab/rails/collectors/action_cable.rb', line 9

def process(event_data)
  case event_data[:name]
  when 'perform_action.action_cable'
    handle_perform_action(event_data)
  when 'transmit.action_cable'
    handle_transmit(event_data)
  when 'transmit_subscription_confirmation.action_cable'
    handle_subscription_confirmation(event_data)
  when 'transmit_subscription_rejection.action_cable'
    handle_subscription_rejection(event_data)
  when 'broadcast.action_cable'
    handle_broadcast(event_data)
  end
end