Register the provider
CallsetProviderAndWait once at application startup. This performs the initial /v1/sync call and opens the SSE stream before the promise resolves, so all subsequent evaluations are backed by a warm cache.
Evaluating flags
Reacting to live updates (SSE)
The provider maintains an SSE connection to Nexus. When a flag or config changes, it re-syncs and emitsPROVIDER_CONFIGURATION_CHANGED.
Type resolution rules
All evaluations return
reason: STATIC - Nexus does not perform per-user targeting. EvaluationContext is accepted by the API but silently ignored.
Framework examples
Angular
React (with @openfeature/react-sdk)
Stopping the provider
onClose() on the provider, which aborts the SSE connection and cleans up resources.
Limitations
EvaluationContextis ignored. Nexus does not perform per-user flag targeting server-side. All evaluations returnreason: STATIC.- Public key only. Use a
wxp_...browser key. Secret backend keys (wxs_...) are not accepted. - No secrets. Secret values are never exposed via browser SDK endpoints. Only feature flags and configs are available.
