Interface representing a repository for managing connections.

interface ConnectionsRepo {
    get(selector: AccountSelector): Promise<undefined | Connection>;
    set(selector: AccountSelector, connection: undefined | Connection): Promise<void>;
}

Implemented by

Methods

Methods

  • Sets a connection for the given selector.

    Parameters

    Returns Promise<void>

    A promise that resolves when the connection is set.