Module: Lograge::ActionCable::ChannelInstrumentation

Defined in:
lib/lograge/rails_ext/action_cable/channel/base.rb

Instance Method Summary collapse

Instance Method Details

#subscribe_to_channelObject



6
7
8
# File 'lib/lograge/rails_ext/action_cable/channel/base.rb', line 6

def subscribe_to_channel
  ActiveSupport::Notifications.instrument('subscribe.action_cable', notification_payload('subscribe')) { super }
end

#unsubscribe_from_channelObject



10
11
12
13
14
# File 'lib/lograge/rails_ext/action_cable/channel/base.rb', line 10

def unsubscribe_from_channel
  ActiveSupport::Notifications.instrument('unsubscribe.action_cable', notification_payload('unsubscribe')) do
    super
  end
end