narrow-spoon-80536
12/12/2023, 10:03 AMconst 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
}
});
However, despite these settings, we still observe that the streaming API requests are being made every 5 minutes. Additionally, the GrowthBook dashboard indicates that streaming updates are enabled in the SDK connection.
Please advise on how to disable the streaming updates.future-teacher-7046
narrow-spoon-80536
12/12/2023, 12:53 PMfuture-teacher-7046
backgroundSync
to false should in theory stop those streaming requests from happening.narrow-spoon-80536
12/12/2023, 1:04 PMfuture-teacher-7046
narrow-spoon-80536
12/12/2023, 1:11 PMfuture-teacher-7046
backgroundSync
option was added in version 0.18.0
, so if you are using an earlier version it won't work.narrow-spoon-80536
12/13/2023, 4:42 AMnarrow-spoon-80536
12/13/2023, 4:42 AM