Implements

Constructors

Properties

_clientLogger?: Logger
_hooks: Hook[] = []
emitterAccessor: (() => InternalEventEmitter)

Type declaration

    • (): InternalEventEmitter
    • Returns InternalEventEmitter

globalLogger: (() => Logger)

Type declaration

options: OpenFeatureClientOptions
providerAccessor: (() => Provider)

Type declaration

providerStatusAccessor: (() => ProviderStatus)

Type declaration

Accessors

Methods

  • Adds hooks that will run during flag evaluations on this receiver. Hooks are executed in the order they were registered. Adding additional hooks will not remove existing hooks. Hooks registered on the global API object run with all evaluations. Hooks registered on the client run with all evaluations on that client.

    Parameters

    • Rest ...hooks: Hook[]

      A list of hooks that should always run

    Returns this

    The receiver (this object)

  • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

    Parameters

    • logger: Logger

      The logger to be used

    Returns this

    The receiver (this object)

Generated using TypeDoc