класс ActionCable::RemoteConnections::RemoteConnection
Представляет собой отдельное удалённое соединение, найденное с помощью ActionCable.server.remote_connections.where(*). Существует только для вызова disconnect для этого соединения.
Атрибуты
server[R]
Открытые методы класса
# File actioncable/lib/action_cable/remote_connections.rb, line 41 def initialize(server, ids) @server = server set_identifier_instance_vars(ids) end
Открытые методы экземпляра
# File actioncable/lib/action_cable/remote_connections.rb, line 47 def disconnect server.broadcast internal_channel, type: "disconnect" end
Использует внутренний канал для разрыва соединения.
© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.