method

disconnect

rails latest stable - Class: ActionCable::RemoteConnections::RemoteConnection
disconnect(reconnect: true)
public

Uses the internal channel to disconnect the connection.