Hierarchy

  • LDClientImpl

Implements

  • LDClient

Constructors

Properties

_baseHeaders: LDHeaders
_checkedContext?: Context
_config: Configuration
_diagnosticsManager?: DiagnosticsManager
_eventFactoryDefault: default = ...
_eventFactoryWithReasons: default = ...
_eventProcessor?: EventProcessor
_eventSendingEnabled: boolean = false
_flagManager: FlagManager
_highTimeoutThreshold: number = 15
_hookRunner: default
_inspectorManager: default
_uncheckedContext?: LDContext
_updateProcessor?: LDStreamProcessor
autoEnvAttributes: AutoEnvAttributes
dataManager: DataManager
emitter: LDEmitter
logger: LDLogger
platform: Platform
sdkKey: string

Methods

  • Parameters

    • timeout: number
    • noTimeout: boolean

    Returns {
        identifyPromise: Promise<void>;
        identifyReject: ((err) => void);
        identifyResolve: (() => void);
    }

    • identifyPromise: Promise<void>
    • identifyReject: ((err) => void)
        • (err): void
        • Parameters

          • err: Error

          Returns void

    • identifyResolve: (() => void)
        • (): void
        • Returns void

  • Identifies a context to LaunchDarkly. See LDClient.identify.

    Parameters

    Returns Promise<void>

    A Promise which resolves when the flag values for the specified context are available. It rejects when:

    1. The context is unspecified or has no key.

    2. The identify timeout is exceeded. In client SDKs this defaults to 5s. You can customize this timeout with identifyOptions.

    3. A network error is encountered during initialization.

  • Enable/Disable event sending.

    Parameters

    • enabled: boolean

      True to enable event processing, false to disable.

    • flush: boolean

      True to flush while disabling. Useful to flush on certain state transitions.

    Returns void

Generated using TypeDoc