Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Client-side SDKs
This feature is available in the following client-side SDKs:- .NET (client-side)
- Android
- C++ (client-side)
- Electron
- Flutter
- iOS
- JavaScript
- Node.js (client-side)
- React Native
- React Web
- Roku
.NET (client-side)
Expand .NET (client-side) code sample
Expand .NET (client-side) code sample
To configure an alternate service endpoint for the SDK, use the
ServiceEndpoints builder method to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Android
Expand Android code sample
Expand Android code sample
To configure an alternate service endpoint for the SDK, use the
streamUri, pollUri, and eventsUri builder methods to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:C++ (client-side)
Expand C++ (client-side) code sample
Expand C++ (client-side) code sample
To configure an alternate service endpoint for the SDK, use To learn more, read
StreamingBaseUrl, PollingBaseUrl, and EventsBaseUrl to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:ServiceEndpoints.Electron
Expand Electron code sample
Expand Electron code sample
To configure an alternate service endpoint for the SDK, use the The Electron SDK uses the
streamUrl, baseUrl, and eventsUrl options to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:baseUrl for the initial connection and subsequent identify calls.If you have enabled streaming, the SDK uses the streamUrl for subsequent connections. If you have enabled useReport, these subsequent requests will use the REPORT HTTP request method. These REPORT requests are streaming requests only if you have installed the LaunchDarkly EventSource polyfill to provide streaming support. Otherwise, these requests will be standard REPORT http requests. To learn more, read EventSource under Requirements and polyfills.Flutter
Expand Flutter code sample
Expand Flutter code sample
To configure an alternate service endpoint for the SDK, use the To learn more, read
ServiceEndpoints configuration option to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:serviceEndpoints.iOS
Expand iOS code sample
Expand iOS code sample
To configure an alternate service endpoint for the SDK, use the
streamUrl, baseUrl, and eventsUrl properties to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:Java
ScriptExpand JavaScript code sample
Expand JavaScript code sample
To configure an alternate service endpoint for the SDK, use the The JavaScript SDK uses the
streamUri, baseUri, and eventsUri properties to specify the base URIs. In previous versions of the JavaScript SDK, these properties were named streamUrl, baseUrl, and eventsUrl, respectively.Here are some examples for common base URIs that you might use instead of the defaults:baseUri for the initial connection and subsequent identify calls.If you have enabled streaming, the SDK uses the streamUri for subsequent connections. If you have enabled useReport, these subsequent requests will use the REPORT HTTP request method. These REPORT requests are streaming requests only if you have installed the LaunchDarkly EventSource polyfill to provide streaming support. Otherwise, these requests will be standard REPORT http requests. To learn more, read EventSource under Requirements and polyfills.Node.js (client-side)
Expand Node.js (client-side) code sample
Expand Node.js (client-side) code sample
To configure an alternate service endpoint for the SDK, use the The Node.js (client-side) SDK uses the
streamUrl, baseUrl, and eventsUrl properties to set the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:baseUrl for the initial connection and subsequent identify calls.If you have enabled streaming, the SDK uses the streamUrl for subsequent connections. If you have enabled useReport, these subsequent requests will use the REPORT HTTP request method. These REPORT requests are streaming requests only if you have installed the LaunchDarkly EventSource polyfill to provide streaming support. Otherwise, these requests will be standard REPORT http requests. To learn more, read EventSource under Requirements and polyfills.React Native
Expand React Native code sample
Expand React Native code sample
To configure an alternate service endpoint for the SDK, use the In version 6.x and earlier, the config properties were named
streamUri, baseUri, and eventsUri properties to set the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:streamUri, pollUri, and eventsUri. They were renamed to streamUrl, pollUrl, and eventsUrl in version 7.- In version 10.0, they are named
streamUri,baseUri, andeventsUri. To learn more, readLDOptions.
React Web
Expand React Web code sample
Expand React Web code sample
To configure an alternate service endpoint for the SDK, use the The React Web SDK uses the
streamUrl, baseUrl, and eventsUrl options to specify the base URIs. Here are some examples for common base URIs that you might use instead of the defaults:baseUrl for the initial connection and subsequent identify calls.If you have enabled streaming, the SDK uses the streamUrl for subsequent connections. If you have enabled useReport, these subsequent requests will use the REPORT HTTP request method. These REPORT requests are streaming requests only if you have installed the LaunchDarkly EventSource polyfill to provide streaming support. Otherwise, these requests will be standard REPORT http requests. To learn more, read EventSource under Requirements and polyfills.To learn more, read Configuration options in the React Web SDK reference.Roku
Expand Roku code sample
Expand Roku code sample
To configure an alternate service endpoint for the SDK, use the
setStreamURI, setAppURI, and setEventsURI methods to specify the base URIs: