instance method
disconnect
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
disconnect(identifiers)
Disconnect all the connections identified by identifiers on this server or any others via RemoteConnections.
Parameters
-
identifiersreq
Source
# File actioncable/lib/action_cable/server/base.rb, line 46
def disconnect(identifiers)
remote_connections.where(identifiers).disconnect
end
Defined in actioncable/lib/action_cable/server/base.rb line 46
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Server::Base