@launchdarkly/js-client-sdk-common - v1.35.4
    Preparing search index...

    Interface LDClientInternalOptions

    This is for internal use only.

    Edge sdks use clientSideID to query feature stores. They also send analytics using this clientSideID. This is a hybrid behavior because they are based on js-server-common, but uses the clientSideID instead of the sdkKey for the above reasons. These internal options allow the edge sdks to use the EventSender to send analytics to the correct LD endpoints using the clientSideId.

    interface LDClientInternalOptions {
        analyticsEventPath?: string;
        credentialType: "clientSideId" | "mobileKey";
        dataSystemDefaults?: PlatformDataSystemDefaults;
        diagnosticEventPath?: string;
        getImplementationHooks: (
            environmentMetadata: LDPluginEnvironmentMetadata,
        ) => Hook[];
        getLegacyStorageKeys?: () => string[];
        highTimeoutThreshold?: number;
        includeAuthorizationHeader?: boolean;
        initialContext?: LDContext;
        registerDebugOverrides?: (debugOverride: LDDebugOverride) => void;
        requiresStart?: boolean;
        trackEventModifier?: (event: InputCustomEvent) => InputCustomEvent;
        userAgentHeaderName?: "user-agent" | "x-launchdarkly-user-agent";
    }

    Hierarchy (View Summary)

    Index
    analyticsEventPath?: string
    credentialType: "clientSideId" | "mobileKey"
    dataSystemDefaults?: PlatformDataSystemDefaults
    diagnosticEventPath?: string
    getImplementationHooks: (
        environmentMetadata: LDPluginEnvironmentMetadata,
    ) => Hook[]
    getLegacyStorageKeys?: () => string[]
    highTimeoutThreshold?: number

    In seconds. Log a warning if identifyTimeout is greater than this value.

    Mobile - 15s. Browser - 5s. Server - 60s.

    includeAuthorizationHeader?: boolean
    initialContext?: LDContext

    The initial context to use when starting the client.

    registerDebugOverrides?: (debugOverride: LDDebugOverride) => void
    requiresStart?: boolean

    When true, the SDK requires start() to be called before identify(). Set this value to true to use the new initialization pattern.

    trackEventModifier?: (event: InputCustomEvent) => InputCustomEvent
    userAgentHeaderName?: "user-agent" | "x-launchdarkly-user-agent"