disconnect()
Uses the internal channel to disconnect the connection.
# File actioncable/lib/action_cable/remote_connections.rb, line 47 def disconnect server.broadcast internal_channel, { type: "disconnect" } end