diff options
-rw-r--r-- | lib/action_cable/connection/base.rb | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb index 4a67167bac..4b73a90dc1 100644 --- a/lib/action_cable/connection/base.rb +++ b/lib/action_cable/connection/base.rb @@ -84,13 +84,6 @@ module ActionCable @websocket.send data end - def statistics - { - identifier: connection_identifier, - started_at: @started_at, - subscriptions: @subscriptions.keys - } - end def handle_exception close_connection @@ -101,6 +94,16 @@ module ActionCable @websocket.close end + + def statistics + { + identifier: connection_identifier, + started_at: @started_at, + subscriptions: @subscriptions.keys + } + end + + protected def request @request ||= ActionDispatch::Request.new(Rails.application.env_config.merge(env)) |