instance method
disconnect
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
disconnect(reconnect: true)
Uses the internal channel to disconnect the connection.
Parameters
-
reconnectkey = true
Source
# File actioncable/lib/action_cable/remote_connections.rb, line 58
def disconnect(reconnect: true)
server.broadcast internal_channel, { type: "disconnect", reconnect: reconnect }
end
Defined in actioncable/lib/action_cable/remote_connections.rb line 58
· View on GitHub
· Improve this page
· Find usages on GitHub