Automatically subscribing to newly created channels

This commit is contained in:
WolverinDEV 2020-12-03 17:58:13 +01:00
parent 903c29ac51
commit 932c4de17b

View file

@ -335,6 +335,11 @@ export class ConnectionCommandHandler extends AbstractCommandHandler {
updates.push({key: key, value: json[key]});
}
channel.updateVariables(...updates);
if(tree.channelsInitialized) {
if(this.connection.client.isSubscribeToAllChannels()) {
channel.subscribe().then(undefined);
}
}
}
private batch_update_finished_timeout;