UI: improve ws reconnect flow
This commit is contained in:
parent
32fcfc7a7f
commit
9caa184fdb
@ -115,14 +115,16 @@ export class TelemetryWebsocketService implements TelemetryService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public update(subscriber: TelemetrySubscriber) {
|
public update(subscriber: TelemetrySubscriber) {
|
||||||
subscriber.subscriptionCommands.forEach(
|
if (!this.isReconnect) {
|
||||||
(subscriptionCommand) => {
|
subscriber.subscriptionCommands.forEach(
|
||||||
if (subscriptionCommand.cmdId && subscriptionCommand instanceof EntityDataCmd) {
|
(subscriptionCommand) => {
|
||||||
this.cmdsWrapper.entityDataCmds.push(subscriptionCommand);
|
if (subscriptionCommand.cmdId && subscriptionCommand instanceof EntityDataCmd) {
|
||||||
|
this.cmdsWrapper.entityDataCmds.push(subscriptionCommand);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
);
|
||||||
);
|
this.publishCommands();
|
||||||
this.publishCommands();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsubscribe(subscriber: TelemetrySubscriber) {
|
public unsubscribe(subscriber: TelemetrySubscriber) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user