docs-devsite/remote-config.configupdateobserver.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
Observer interface for receiving real-time Remote Config update notifications.
NOTE: Although an complete callback can be provided, it will never be called because the ConfigUpdate stream is never-ending.
<b>Signature:</b>
export interface ConfigUpdateObserver
| Property | Type | Description |
|---|---|---|
| complete | () => void | Called when the stream is gracefully terminated. |
| error | (error: FirebaseError<!-- -->) => void | Called if an error occurs during the stream. |
| next | (configUpdate: ConfigUpdate<!-- -->) => void | Called when a new ConfigUpdate is available. |
Called when the stream is gracefully terminated.
<b>Signature:</b>
complete: () => void;
Called if an error occurs during the stream.
<b>Signature:</b>
error: (error: FirebaseError) => void;
Called when a new ConfigUpdate is available.
<b>Signature:</b>
next: (configUpdate: ConfigUpdate) => void;