File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/remote-config/src/client Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { ConfigUpdateObserver } from "../public_types";
19
19
const MAX_HTTP_RETRIES = 8 ;
20
20
21
21
export class RealtimeHandler {
22
- constructor ( )
22
+ constructor ( )
23
23
{ }
24
24
25
25
private observers : Set < ConfigUpdateObserver > = new Set < ConfigUpdateObserver > ( ) ;
@@ -28,10 +28,12 @@ export class RealtimeHandler{
28
28
* Adds an observer to the realtime updates.
29
29
* @param observer The observer to add.
30
30
*/
31
- public addObserver ( observer : ConfigUpdateObserver ) {
31
+ public addObserver ( observer : ConfigUpdateObserver ) : void {
32
32
this . observers . add ( observer ) ;
33
33
this . beginRealtime ( ) ;
34
+
34
35
}
36
+
35
37
/**
36
38
* Removes an observer from the realtime updates.
37
39
* @param observer The observer to remove.
@@ -44,7 +46,7 @@ export class RealtimeHandler{
44
46
45
47
private beginRealtime ( ) : void {
46
48
if ( this . observers . size > 0 ) {
47
- this . makeRealtimeHttpConnection ( 0 ) ;
49
+ this . makeRealtimeHttpConnection ( 0 )
48
50
}
49
51
}
50
52
You can’t perform that action at this time.
0 commit comments