Module: Lograge::ActionCable::ConnectionInstrumentation
- Defined in:
- lib/lograge/rails_ext/action_cable/connection/base.rb
Instance Method Summary collapse
Instance Method Details
#handle_close ⇒ Object
10 11 12 |
# File 'lib/lograge/rails_ext/action_cable/connection/base.rb', line 10 def handle_close ActiveSupport::Notifications.instrument('disconnect.action_cable', notification_payload('disconnect')) { super } end |
#handle_open ⇒ Object
6 7 8 |
# File 'lib/lograge/rails_ext/action_cable/connection/base.rb', line 6 def handle_open ActiveSupport::Notifications.instrument('connect.action_cable', notification_payload('connect')) { super } end |
#notification_payload(method_name) ⇒ Object
14 15 16 |
# File 'lib/lograge/rails_ext/action_cable/connection/base.rb', line 14 def notification_payload(method_name) { connection_class: self.class.name, action: method_name, data: request.params } end |