@@ -258,7 +258,7 @@ export function getValue(remoteConfig: RemoteConfig, key: string): Value {
258
258
if ( ! rc . _isInitializationComplete ) {
259
259
rc . _logger . debug (
260
260
`A value was requested for key "${ key } " before SDK initialization completed.` +
261
- ' Await on ensureInitialized if the intent was to get a previously activated value.'
261
+ ' Await on ensureInitialized if the intent was to get a previously activated value.'
262
262
) ;
263
263
}
264
264
const activeConfig = rc . _storageCache . getActiveConfig ( ) ;
@@ -269,7 +269,7 @@ export function getValue(remoteConfig: RemoteConfig, key: string): Value {
269
269
}
270
270
rc . _logger . debug (
271
271
`Returning static value for key "${ key } ".` +
272
- ' Define a default or remote value if this is unintentional.'
272
+ ' Define a default or remote value if this is unintentional.'
273
273
) ;
274
274
return new ValueImpl ( 'static' ) ;
275
275
}
@@ -354,8 +354,14 @@ export async function setCustomSignals(
354
354
}
355
355
}
356
356
357
+ // TODO: Add public document for the Remote Config Realtime API guide on the Web Platform.
357
358
/**
358
- * Registers a real-time listener for Remote Config updates.
359
+ * Starts listening for real-time config updates from the Remote Config backend and automatically
360
+ * fetches updates from the RC backend when they are available.
361
+ *
362
+ * <p>If a connection to the Remote Config backend is not already open, calling this method will
363
+ * open it. Multiple listeners can be added by calling this method again, but subsequent calls
364
+ * re-use the same connection to the backend.
359
365
*
360
366
* @param remoteConfig - The {@link RemoteConfig} instance.
361
367
* @param observer - The {@link ConfigUpdateObserver} to be notified of config updates.
0 commit comments