X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FMessageChannelUtils.ts;h=f3008b50d117b675cfeec772a8b90518669a998d;hb=6a4032b5d8f3cbaa18d3beddcdfe9d335c1cba90;hp=edaaa49ee7280cef16f63e91911f61ddba73e293;hpb=e1d9a0f4d6ff1a90048e9a694fd12b7031cc6961;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/MessageChannelUtils.ts b/src/utils/MessageChannelUtils.ts index edaaa49e..f3008b50 100644 --- a/src/utils/MessageChannelUtils.ts +++ b/src/utils/MessageChannelUtils.ts @@ -16,7 +16,7 @@ export const buildStartedMessage = ( chargingStation: ChargingStation, ): ChargingStationWorkerMessage => { return { - id: ChargingStationWorkerMessageEvents.started, + event: ChargingStationWorkerMessageEvents.started, data: buildChargingStationDataPayload(chargingStation), }; }; @@ -25,7 +25,7 @@ export const buildStoppedMessage = ( chargingStation: ChargingStation, ): ChargingStationWorkerMessage => { return { - id: ChargingStationWorkerMessageEvents.stopped, + event: ChargingStationWorkerMessageEvents.stopped, data: buildChargingStationDataPayload(chargingStation), }; }; @@ -34,7 +34,7 @@ export const buildUpdatedMessage = ( chargingStation: ChargingStation, ): ChargingStationWorkerMessage => { return { - id: ChargingStationWorkerMessageEvents.updated, + event: ChargingStationWorkerMessageEvents.updated, data: buildChargingStationDataPayload(chargingStation), }; }; @@ -43,7 +43,7 @@ export const buildPerformanceStatisticsMessage = ( statistics: Statistics, ): ChargingStationWorkerMessage => { return { - id: ChargingStationWorkerMessageEvents.performanceStatistics, + event: ChargingStationWorkerMessageEvents.performanceStatistics, data: statistics, }; };