method LaunchDarklyProvider.prototype.start
LaunchDarklyProvider.prototype.start(): Promise<void>

Builds the client (unless one was injected), waits for its initial connection, subscribes to flag updates, and prewarms the anonymous snapshot.

A connection that does not complete within initTimeoutSeconds is logged and tolerated rather than thrown: a flag backend being briefly unreachable should leave the application serving with fallback values, not refuse to boot. The condition is reported through LaunchDarklyProvider.status.

Return Type

Promise<void>

Throws

Error

When neither a client nor an sdkKey was configured, or when the SDK module cannot be loaded

Usage

import { LaunchDarklyProvider } from "feature-flags-plugin/src/index.ts";