+ public stop(): void {
+ this.chargingStations.clear();
+ }
+
+ public async sendInternalRequest(request: ProtocolRequest): Promise<ProtocolResponse> {
+ const protocolVersion = ProtocolVersion['0.0.1'];
+ this.registerProtocolVersionUIService(protocolVersion);
+ return this.uiServices
+ .get(protocolVersion)
+ ?.requestHandler(request) as Promise<ProtocolResponse>;
+ }
+
+ public hasResponseHandler(id: string): boolean {
+ return this.responseHandlers.has(id);
+ }
+
+ protected startHttpServer(): void {
+ if (this.httpServer.listening === false) {
+ this.httpServer.listen(this.uiServerConfiguration.options);
+ }
+ }
+