instance method
statistics
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
statistics()
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.
Source
# 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
Defined in actioncable/lib/action_cable/connection/base.rb line 138
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::Base