Quick question; Is the Growthbook Proxy a require...
# ask-questions
m
Quick question; Is the Growthbook Proxy a requirement for streaming to work? Without a proxy, I can't seem to get it working. (I've not tested with a proxy)
f
no, its not a a requirement. Which SDK are you using?
m
React v1.6.2. The UI says its connected, but it shows
Streaming updates: disabled
I've initialized it like this;
Copy code
const growthbookInstance = new GrowthBook({
  apiHost: runtimeConfig.GROWTHBOOK_API_HOST,
  clientKey: runtimeConfig.GROWTHBOOK_CLIENT_KEY,
  enableDevMode: !isProduction,
  debug: !isProduction,
  disableCache: true,
})

...

growthbookInstance.init({ streaming: true })
To add; The docs here (https://docs.growthbook.io/lib/react#streaming-updates) do indicate that a proxy (or cloud) is required? > This is only supported on GrowthBook Cloud or if running a GrowthBook Proxy Server. I am self-hosting GrowthBook.
@fresh-football-47124 To follow up, it seems like the Proxy is a requirement for streaming when self-hosting. 🙂 I could not get it to work any other way