Creates an instance of the LaunchDarkly client. Note that the client will not be ready to use until LDClient.start is called.
Usage:
import { createClient } from 'launchdarkly-js-client-sdk';const client = createClient(clientSideId, context, options);// Attach event listeners and add any additional logic here// Then start the clientclient.start(); Copy
import { createClient } from 'launchdarkly-js-client-sdk';const client = createClient(clientSideId, context, options);// Attach event listeners and add any additional logic here// Then start the clientclient.start();
The client-side ID, also known as the environment ID.
The initial context used to identify the user.
Optional
Optional configuration settings.
The new client instance.
The client will not automatically start until LDClient.start is called in order to synchronize the registering of event listeners and other initialization logic that should be done before the client initiates its connection to LaunchDarkly.
Generated using TypeDoc
Creates an instance of the LaunchDarkly client. Note that the client will not be ready to use until LDClient.start is called.
Usage: