the autoRefresh is not for that - its for connecting to the GrowthBook Proxy server, otherwise it has no effect. We use Server-Sent Events, but only if you’re connecting through a GrowthBook Proxy server (
https://docs.growthbook.io/self-host/proxy). - that’s what that setting controls - without that it has no effect.
Alternatively, you can manually update at any time by calling
gb.refreshFeatures()
. So you can implement your own polling behavior if you want or hook into user actions like navigation or button clicks.