I am trying to disable streaming feature, i found this code snippet
const gb = new GrowthBook({
apiHost: GROWTH_BOOK_API_HOST,
clientKey: GROWTH_BOOK_CLIENT_KEY,
// Enable easier debugging during development
enableDevMode: true,
// Disable background streaming connection
backgroundSync: false,
subscribeToChanges: false,
trackingCallback: (experiment, result) => {
// analytics tracking
}
});
But it doesn’t work. The properties backgroundSync and subscribeToChanges, don’t exist.
How can i turn off streaming updates?
Note that i used GB cloud