From 7c1395ab4ec7d727ac09c0f0347a8d9fc5e2c8de Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 28 May 2023 18:01:22 +0200 Subject: [PATCH] refactor: cleanup UI service method namespace MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/Bootstrap.ts | 2 +- src/charging-station/ui-server/AbstractUIServer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 677843d2..802a9445 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -129,7 +129,7 @@ export class Bootstrap extends EventEmitter { public async stop(): Promise { if (isMainThread && this.started === true) { - await this.uiServer?.sendRequestOnBroadcastChannel( + await this.uiServer?.sendInternalRequest( this.uiServer.buildProtocolRequest( Utils.generateUUID(), ProcedureName.STOP_CHARGING_STATION, diff --git a/src/charging-station/ui-server/AbstractUIServer.ts b/src/charging-station/ui-server/AbstractUIServer.ts index c21185fe..36d00e01 100644 --- a/src/charging-station/ui-server/AbstractUIServer.ts +++ b/src/charging-station/ui-server/AbstractUIServer.ts @@ -46,7 +46,7 @@ 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); -- 2.34.1