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.



125
126
127
128
129
130
131
132
# File 'actioncable/lib/action_cable/connection/base.rb', line 125

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