X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2FAbstractUIServer.ts;h=e689441633b47e0c7a6b52cd4c90fb1de58221be;hb=022a231c76e227205b0124a7aef8e16ceb86a1d9;hp=8552a572f4bf08ab3134da682f3c444f2aa54773;hpb=bf4afa568a47cf088c01725737aecb4be7df40b2;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/AbstractUIServer.ts b/src/charging-station/ui-server/AbstractUIServer.ts index 8552a572..e6894416 100644 --- a/src/charging-station/ui-server/AbstractUIServer.ts +++ b/src/charging-station/ui-server/AbstractUIServer.ts @@ -46,12 +46,16 @@ export abstract class AbstractUIServer { this.chargingStations.clear(); } - public async sendRequestOnBroadcastChannel(request: ProtocolRequest): Promise { + public async sendInternalRequest(request: ProtocolRequest): Promise { const protocolVersion = ProtocolVersion['0.0.1']; this.registerProtocolVersionUIService(protocolVersion); return this.uiServices.get(protocolVersion)?.requestHandler(request); } + public hasResponseHandler(id: string): boolean { + return this.responseHandlers.has(id); + } + protected startHttpServer(): void { if (this.httpServer.listening === false) { this.httpServer.listen(this.uiServerConfiguration.options);