@launchdarkly/fastly-server-sdk - v0.2.45
    Preparing search index...

    Function init

    • Creates an instance of the Fastly LaunchDarkly client.

      Applications should instantiate a single instance for the lifetime of a request. The client will begin attempting to connect to the configured Fastly KV as soon as it is created. To determine when it is ready to use, call LDClient.waitForInitialization.

      Important: Do not try to instantiate LDClient with its constructor (new LDClient()/new LDClientImpl()/new LDClient()); the SDK does not currently support this.

      Parameters

      • clientSideId: string

        The client side ID. This is only used to query the kvStore above, not to connect with LaunchDarkly servers.

      • kvStore: KVStore

        The Fastly KV store configured for LaunchDarkly.

      • options: LDOptions = ...

      Returns LDClient

      The new LDClient instance.