+
+ const types: LiveVideoEventType[] = [ 'views-change', 'state-change' ]
+
+ for (const type of types) {
+ this.liveVideosSocket.on(type, (payload: LiveVideoEventPayload) => {
+ this.ngZone.run(() => this.dispatchLiveVideoEvent(type, payload))
+ })
+ }