refactor: trivial cleanups
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-server / AbstractUIServer.ts
index c21185fe2c890d8bc2f293dcb68ba756f1a517ef..e689441633b47e0c7a6b52cd4c90fb1de58221be 100644 (file)
@@ -46,14 +46,14 @@ export abstract class AbstractUIServer {
     this.chargingStations.clear();
   }
 
-  public async sendRequestOnBroadcastChannel(request: ProtocolRequest): Promise<ProtocolResponse> {
+  public async sendInternalRequest(request: ProtocolRequest): Promise<ProtocolResponse> {
     const protocolVersion = ProtocolVersion['0.0.1'];
     this.registerProtocolVersionUIService(protocolVersion);
     return this.uiServices.get(protocolVersion)?.requestHandler(request);
   }
 
-  public hasResponseHandler(uuid: string): boolean {
-    return this.responseHandlers.has(uuid);
+  public hasResponseHandler(id: string): boolean {
+    return this.responseHandlers.has(id);
   }
 
   protected startHttpServer(): void {