From: Jérôme Benoit Date: Mon, 12 Sep 2022 13:50:17 +0000 (+0200) Subject: UI Server: update CS list at ATG start/stop X-Git-Tag: v1.1.73~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=23253fafe91c72ed88b47d7acfde190c22e18d28;p=e-mobility-charging-stations-simulator.git UI Server: update CS list at ATG start/stop Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index a6694066..7ce6c1f8 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -731,6 +731,7 @@ export default class ChargingStation { } else { this.automaticTransactionGenerator.start(); } + parentPort.postMessage(MessageChannelUtils.buildUpdatedMessage(this)); } public stopAutomaticTransactionGenerator(connectorIds?: number[]): void { @@ -743,6 +744,7 @@ export default class ChargingStation { this.automaticTransactionGenerator?.stop(); this.automaticTransactionGenerator = null; } + parentPort.postMessage(MessageChannelUtils.buildUpdatedMessage(this)); } public async stopTransactionOnConnector(