-
-[enableOverrides?](./js-client-sdk.iclientconfig.enableoverrides.md)
-
-
- |
-
-
- |
-
-boolean
-
-
- |
-
-_(Optional)_ Enable the Overrides Store for local flag overrides. (default: false)
-
-
- |
-
-
-[eventIngestionConfig?](./js-client-sdk.iclientconfig.eventingestionconfig.md)
-
-
- |
-
-
- |
-
-{ deliveryIntervalMs?: number; retryIntervalMs?: number; maxRetryDelayMs?: number; maxRetries?: number; batchSize?: number; maxQueueSize?: number; }
-
-
- |
-
-_(Optional)_ Configuration settings for the event dispatcher
-
-
- |
-
-
-[forceReinitialize?](./js-client-sdk.iclientconfig.forcereinitialize.md)
-
-
- |
-
-
- |
-
-boolean
-
-
- |
-
-_(Optional)_ Force reinitialize the SDK if it is already initialized.
-
-
- |
-
-
-[maxCacheAgeSeconds?](./js-client-sdk.iclientconfig.maxcacheageseconds.md)
-
-
- |
-
-
- |
-
-number
+Configuration for regular client initialization Create your initialization options object as one large object:
+const options { apiKey = 'MY SDK KEY', assignmentLogger, maxCacheAgeSeconds = 30, }
- |
+OR, build separate objects for your config and destructure them at call to `init`.
-_(Optional)_ Maximum age, in seconds, previously cached values are considered valid until new values will be fetched (default: 0)
+const apiOptions: IApiOptions = { apiKey = 'MY SDK KEY'}; const loggerOptions: ILoggerOptions = {assignmentLogger, banditLogger}; const eventOptions: IEventOptions = { ... };
+const eppoClient = init({...apiOptions, ...loggerOptions, ...eventOptions});
- |
-
-
-[overridesStorageKey?](./js-client-sdk.iclientconfig.overridesstoragekey.md)
-
-
- |
-
-
- |
-
-string
-
-
- |
-
-_(Optional)_ The key to use for the overrides store.
-
-
- |
-
-
-[persistentStore?](./js-client-sdk.iclientconfig.persistentstore.md)
-
-
- |
-
-
- |
-
-IAsyncStore<Flag>
-
-
- |
-
-_(Optional)_ A custom class to use for storing flag configurations. This is useful for cases where you want to use a different storage mechanism than the default storage provided by the SDK.
-
-
- |
-
-
-[throwOnFailedInitialization?](./js-client-sdk.iclientconfig.throwonfailedinitialization.md)
-
-
- |
-
-
- |
-
-boolean
-
-
- |
-
-_(Optional)_ Throw an error if unable to fetch an initial configuration during initialization. (default: true)
-
-
- |
-
-
-[updateOnFetch?](./js-client-sdk.iclientconfig.updateonfetch.md)
-
-
- |
-
-
- |
-
-ServingStoreUpdateStrategy
-
-
- |
-
-_(Optional)_ Sets how the configuration is updated after a successful fetch - always: immediately start using the new configuration - expired: immediately start using the new configuration only if the current one has expired - empty: only use the new configuration if the current one is both expired and uninitialized/empty
-
-
- |
-
-
-[useExpiredCache?](./js-client-sdk.iclientconfig.useexpiredcache.md)
-
-
- |
-
-
- |
-
-boolean
-
-
- |
-
-_(Optional)_ Whether initialization will be considered successfully complete if expired cache values are loaded. If false, initialization will always wait for a fetch if cached values are expired. (default: false)
-
+**Signature:**
- |
-