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