node-server-sdk

Home > @eppo/node-server-sdk

node-server-sdk package

Functions

Function Description
[getBanditsConfiguration()](/node-server-sdk/node-server-sdk.getbanditsconfiguration.html) Returns the current bandits configuration as a JSON string. This can be used together with getFlagsConfiguration() to bootstrap another SDK instance using offlineInit().
[getFlagsConfiguration()](/node-server-sdk/node-server-sdk.getflagsconfiguration.html) Reconstructs the current flags configuration as a JSON string. This can be used to bootstrap another SDK instance using offlineInit().
[getInstance()](/node-server-sdk/node-server-sdk.getinstance.html) Used to access a singleton SDK client instance. Use the method after calling init() to initialize the client.
[init(config)](/node-server-sdk/node-server-sdk.init.html) Initializes the Eppo client with configuration parameters. This method should be called once on application startup. After invocation of this method, the SDK will poll Eppo API at regular intervals to retrieve assignment configurations.
[offlineInit(config)](/node-server-sdk/node-server-sdk.offlineinit.html) Initializes the Eppo client in offline mode with a provided configuration. This method is synchronous and does not make any network requests. Use this when you want to initialize the SDK with a previously fetched configuration.

Interfaces

Interface Description
[IClientConfig](/node-server-sdk/node-server-sdk.iclientconfig.html) Configuration used for initializing the Eppo client
[IOfflineClientConfig](/node-server-sdk/node-server-sdk.iofflineclientconfig.html) Configuration used for offline initialization of the Eppo client. Offline initialization allows the SDK to be used without making any network requests.

Variables

Variable Description
[NO\_OP\_EVENT\_DISPATCHER](/node-server-sdk/node-server-sdk.no_op_event_dispatcher.html)