Showing
1 changed file
with
2 additions
and
5 deletions
@@ -549,8 +549,6 @@ export class TelemetrySubscriber { | @@ -549,8 +549,6 @@ export class TelemetrySubscriber { | ||
549 | private entityCountSubject = new ReplaySubject<EntityCountUpdate>(1); | 549 | private entityCountSubject = new ReplaySubject<EntityCountUpdate>(1); |
550 | private reconnectSubject = new Subject(); | 550 | private reconnectSubject = new Subject(); |
551 | 551 | ||
552 | - private zone: NgZone; | ||
553 | - | ||
554 | private tsOffset = undefined; | 552 | private tsOffset = undefined; |
555 | 553 | ||
556 | public subscriptionCommands: Array<WebsocketCmd>; | 554 | public subscriptionCommands: Array<WebsocketCmd>; |
@@ -576,13 +574,12 @@ export class TelemetrySubscriber { | @@ -576,13 +574,12 @@ export class TelemetrySubscriber { | ||
576 | if (keys) { | 574 | if (keys) { |
577 | subscriptionCommand.keys = keys.join(','); | 575 | subscriptionCommand.keys = keys.join(','); |
578 | } | 576 | } |
579 | - const subscriber = new TelemetrySubscriber(telemetryService); | ||
580 | - subscriber.zone = zone; | 577 | + const subscriber = new TelemetrySubscriber(telemetryService, zone); |
581 | subscriber.subscriptionCommands.push(subscriptionCommand); | 578 | subscriber.subscriptionCommands.push(subscriptionCommand); |
582 | return subscriber; | 579 | return subscriber; |
583 | } | 580 | } |
584 | 581 | ||
585 | - constructor(private telemetryService: TelemetryService) { | 582 | + constructor(private telemetryService: TelemetryService, private zone?: NgZone) { |
586 | this.subscriptionCommands = []; | 583 | this.subscriptionCommands = []; |
587 | } | 584 | } |
588 | 585 |