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