Agent object that can get visitor identifier

interface Agent {
    get<TExtended, TIP>(options?): Promise<DeriveGetResult<TExtended>>;
}

Methods

Methods

  • Gets the visitor identifier. See the ERROR_... constants for expected error messages. When an error is emitted by the backend, it gets a requestId field, same as in successful result.

    The TypeScript TIP parameter does nothing and is left for backward compatibility. It will be removed later.

    Type Parameters

    • TExtended extends boolean = false
    • TIP = unknown

    Parameters

    Returns Promise<DeriveGetResult<TExtended>>

Generated using TypeDoc