https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
q

quick-gold-257

12/15/2023, 10:20 PM
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
b

brief-honey-45610

12/15/2023, 11:11 PM
Hi Mohamed, are you using the JS SDK?
f

fresh-football-47124

12/16/2023, 1:33 AM
you might be on an older version of the SDK
q

quick-gold-257

12/16/2023, 7:22 AM
Yes i have 2 experiments one using JS SDK and the other using React SDK
s

steep-grass-70833

12/19/2023, 11:49 AM
We updated the SDk and now we see the properties, but adding this code did not turn off streaming updates. Anything else we should do?
FYI @incalculable-country-73693
f

fresh-football-47124

12/19/2023, 8:11 PM
are you sure that code is live? The subscribe to changes is what does it
4 Views