Optional
clientOptional
context?: LDContextA LaunchDarkly context object. If unspecified, an anonymous context with kind: 'user' will be created and used.
Optional
deferDefers initialization of the LaunchDarkly client until ldInit is called explicitly.
Optional
options?: LDOptionsOptions to pass to the underlying javascript SDK.
Optional
streaming?: booleanWhether or not to open a streaming connection to LaunchDarkly for live flag updates.
If this is true, the client will always attempt to maintain a streaming connection; if false, it never will. If you leave the value undefined (the default), the client will open a streaming connection for live updates to flags referenced using useLDFlag.
Note that if streaming
is provided in options
, it will take precedence.
Optional
user?: LDContext
Indicates which LaunchDarkly project to use. Must be provided here or in a call to ldInit for the SDK to work.