From 44e7cc324df1189531b60de1c6353289c8205a97 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 5 Jul 2015 22:33:14 +0200 Subject: Extract connections methods into a separate concern --- lib/action_cable/server/base.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib/action_cable/server/base.rb') diff --git a/lib/action_cable/server/base.rb b/lib/action_cable/server/base.rb index e8109b325d..fd3e5e4020 100644 --- a/lib/action_cable/server/base.rb +++ b/lib/action_cable/server/base.rb @@ -2,6 +2,7 @@ module ActionCable module Server class Base include ActionCable::Server::Broadcasting + include ActionCable::Server::Connections cattr_accessor(:logger, instance_reader: true) { Rails.logger } @@ -51,16 +52,6 @@ module ActionCable @connection_class.identifiers end - def add_connection(connection) - @connections << connection - end - - def remove_connection(connection) - @connections.delete connection - end - - def open_connections_statistics - @connections.map(&:statistics) end end end -- cgit v1.2.3