Whether all user attributes (except the user key) should be marked as private, and not sent to LaunchDarkly.
By default, this is false.
The base URI for the LaunchDarkly server.
Most users should use the default value.
The capacity of the analytics events queue.
The client buffers up to this many events in memory before flushing. If the capacity is exceeded before the buffer is flushed, events will be discarded.
Set to true to opt out of sending diagnostics data.
Unless the diagnosticOptOut
field is set to true, the client will send some diagnostics data to the
LaunchDarkly servers in order to assist in the development of future SDK improvements. These diagnostics
consist of an initial payload containing some details of SDK in use, the SDK's configuration, and the platform
the SDK is being run on, as well as payloads sent periodically with information on irregular occurrences such
as dropped events.
The interval at which periodic diagnostic data is sent, in seconds.
The default is 900 (every 15 minutes) and the minimum value is 60 (every minute).
The base URI for the LaunchDarkly events server.
Most users should use the default value.
A component that stores feature flags and related data received from LaunchDarkly.
By default, this is an in-memory data structure. The SDK also provides a Redis implementation (RedisFeatureStore); other options are described in the SDK reference guide.
The interval in between flushes of the analytics events queue, in seconds.
Configures a logger for warnings and errors generated by the SDK.
This can be a custom logger or an instance of winston.Logger
.
Whether the client should be initialized in offline mode.
The time between polling requests, in seconds. Ignored in streaming mode.
The names of any user attributes that should be marked as private, and not sent to LaunchDarkly.
Allows you to specify basic authentication parameters for an optional HTTP proxy.
Usually of the form username:password
.
Allows you to specify a host for an optional HTTP proxy.
Allows you to specify a port for an optional HTTP proxy.
Both the host and port must be specified to enable proxy support.
When using an HTTP proxy, specifies whether it is accessed via http
or https
.
Whether to send analytics events back to LaunchDarkly. By default, this is true.
Whether streaming mode should be used to receive flag updates.
This is true by default. If you set it to false, the client will use polling. Streaming should only be disabled on the advice of LaunchDarkly support.
Sets the initial reconnect delay for the streaming connection, in seconds.
The streaming service uses a backoff algorithm (with jitter) every time the connection needs to be reestablished. The delay for the first reconnection will start near this value, and then increase exponentially for any subsequent connection failures.
The default value is 1.
Deprecated alternative to streamInitialReconnectDelay
.
The base URI for the LaunchDarkly streaming server.
Most users should use the default value.
The connection timeout, in seconds.
Additional parameters to pass to the Node HTTPS API for secure requests. These can include any
of the TLS-related parameters supported by https.request()
, such as ca
, cert
, and key
.
For more information, see the Node documentation for https.request()
and tls.connect()
.
A component that obtains feature flag data and puts it in the feature store.
By default, this is the client's default streaming or polling component. It can be changed for testing purposes; see FileDataSource.
Whether you are using the LaunchDarkly relay proxy in daemon mode.
In this configuration, the client will not connect to LaunchDarkly to get feature flags, but will instead get feature state from a database (Redis or another supported feature store integration) that is populated by the relay. By default, this is false.
The number of user keys that the event processor can remember at any one time, so that duplicate user details will not be sent in analytics events.
Defaults to 1000.
The interval (in seconds) at which the event processor will reset its set of known user keys.
Defaults to 300.
For use by wrapper libraries to set an identifying name for the wrapper being used.
This will be sent in User-Agent headers during requests to the LaunchDarkly servers to allow recording metrics on the usage of these wrapper libraries.
For use by wrapper libraries to report the version of the library in use.
If wrapperName
is not set, this field will be ignored. Otherwise the version string will be included in
the User-Agent headers along with the wrapperName
during requests to the LaunchDarkly servers.
Generated using TypeDoc
LaunchDarkly initialization options.