1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix RemoteConnection due to refactoring breakage

This commit is contained in:
David Heinemeier Hansson 2015-06-22 21:34:06 +02:00
parent b9fcaa7cbc
commit a66c56210c

View file

@ -2,7 +2,7 @@ module ActionCable
class RemoteConnection
class InvalidIdentifiersError < StandardError; end
include Connection::Identifier
include Connection::Identification, Connection::InternalChannel
def initialize(server, ids)
@server = server
@ -10,8 +10,7 @@ module ActionCable
end
def disconnect
message = { type: 'disconnect' }.to_json
redis.publish(internal_redis_channel, message)
redis.publish internal_redis_channel, { type: 'disconnect' }.to_json
end
def identifiers