lib/anycable/rails/actioncable/connection.rb in anycable-rails-1.1.3 vs lib/anycable/rails/actioncable/connection.rb in anycable-rails-1.1.4
- old
+ new
@@ -7,11 +7,10 @@
require "anycable/rails/actioncable/remote_connections"
require "anycable/rails/session_proxy"
module ActionCable
module Connection
- # rubocop: disable Metrics/ClassLength
class Base # :nodoc:
# We store logger tags in the connection state to be able
# to re-use them in the subsequent calls
LOG_TAGS_IDENTIFIER = "__ltags__"
@@ -96,10 +95,9 @@
subscriptions.unsubscribe_from_all
disconnect if respond_to?(:disconnect)
true
end
- # rubocop:disable Metrics/MethodLength
def handle_channel_command(identifier, command, data)
channel = subscriptions.fetch(identifier)
case command
when "subscribe"
channel.handle_subscribe