Method: ActionCable::Connection::Base#statistics

Defined in:
actioncable/lib/action_cable/connection/base.rb

#statisticsObject

Return a basic hash of statistics for the connection keyed with ‘identifier`, `started_at`, `subscriptions`, and `request_id`. This can be returned by a health check against the connection.



138
139
140
141
142
143
144
145
# File 'actioncable/lib/action_cable/connection/base.rb', line 138

def statistics
  {
    identifier: connection_identifier,
    started_at: @started_at,
    subscriptions: subscriptions.identifiers,
    request_id: @env["action_dispatch.request_id"]
  }
end