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