@salesforce/agents
    Preparing search index...

    Function managerFor

    • Returns the ConnectionManager associated with the supplied Connection, creating one on the first call. Subsequent calls with the same Connection return the cached manager.

      Different Connection objects — even for the same username — get distinct managers, which is the desired behavior: the caller's connection identity is the unit of trust.

      Parameters

      • connection: Connection

        The caller-supplied Connection used as the cache key

      Returns Promise<ConnectionManager>

      A promise resolving to the manager for this connection