Core API
The FlipFlagClient is the shared client used by all SDKs.
start(): Promise<void>— Starts polling and metrics timers.stop(): void— Stops timers.isEnabled(flagKey: string, defaultValue?: boolean): booleangetVariant(flagKey: string, defaultValue?: FlagValue): SdkFlagEvaluationgetAllFlags(): Record<string, SdkFlagEvaluation>updateContext(context: SdkContext): voidflushMetrics(): Promise<void>getStatus(): { ready: boolean; error?: Error; updatedAt?: string }
Events:
ready— initial evaluations fetched.update— evaluations refreshed.error— request failed.metrics— metrics flushed.