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