12/23/2023 0 Comments Electron api requestTo make this transition easier, the LaunchDarkly Electron SDK provides an optional wrapper that emulates the Node.js SDK. For instance, in the server-side Node SDK, variation() is an asynchronous call that takes a callback, whereas in the client-side SDKs it is synchronous. Server-side Node SDK compatibilityįor developers who were using the server-side Node.js in Electron before the Electron SDK was available, there are differences between the APIs that can be inconvenient. The Electron SDK includes features that are specific to Electron, such as the ability to access main-process flags from the front end as described below. However, we still recommend the Electron SDK if you are working in Electron. ![]() LaunchDarkly also provides a client-side Node.js SDK. The client-side and mobile SDKs, which normally evaluate flags for just one user at a time, use a much more efficient protocol where they request only the active variation for each flag for that specific user. The server-side SDKs download your entire flag data using this key, because they have to be able to evaluate flags quickly for any user.The client-side and mobile SDKs use different credentials that do not allow this. If you embed this SDK key in an application, any user who looks inside the application can then access all of your feature flag definitions, which may include sensitive data such as other users' email addresses. The server-side SDKs include an SDK key that can download the entire definition, including rollout rules and individual user targets, of all of your feature flags.There are several reasons why this distinction matters: However, we strongly discourage this because the server-side Node.js SDK is not meant for applications that are distributed to users. Why use this instead of the Node.js SDK?īecause Electron is based on Node.js, it is possible to run the LaunchDarkly server-side Node.js SDK in it. ![]() To learn more, read Using LaunchDarkly with TypeScript. The sample code snippets for this SDK are available in both JavaScript and TypeScript, where the sample code differs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |