X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FUIServiceWorkerBroadcastChannel.ts;h=c64a7ccc2212d021189b373278ad8d5a804961bc;hb=b3b45e6c81c2a01d793c3dc9ab48157e51c82ca3;hp=8a85565ee88469d20e959f6b531c73a0d4db94cb;hpb=c6e110c2f44b18fc7badf29f934269e0b0421254;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/UIServiceWorkerBroadcastChannel.ts b/src/charging-station/UIServiceWorkerBroadcastChannel.ts index 8a85565e..c64a7ccc 100644 --- a/src/charging-station/UIServiceWorkerBroadcastChannel.ts +++ b/src/charging-station/UIServiceWorkerBroadcastChannel.ts @@ -1,3 +1,4 @@ +import type { ResponsePayload } from '../types/UIProtocol'; import type { BroadcastChannelResponse, MessageEvent } from '../types/WorkerBroadcastChannel'; import logger from '../utils/Logger'; import type AbstractUIService from './ui-server/ui-services/AbstractUIService'; @@ -24,7 +25,7 @@ export default class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChan // TODO: handle multiple responses for the same uuid delete responsePayload.hashId; - this.uiService.sendResponse(uuid, responsePayload); + this.uiService.sendResponse(uuid, responsePayload as ResponsePayload); } private messageErrorHandler(messageEvent: MessageEvent): void {