X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FWebSocketServices%2Fui%2F0.0.1%2FUIService.ts;fp=src%2Fcharging-station%2FWebSocketServices%2Fui%2F0.0.1%2FUIService.ts;h=6c507fd8f07f74bb631d15aef02d0fa1e7edd4d5;hb=d8ff9d67d91a9aa8ac525de54ed0248066ac94f2;hp=f2db451240135a182d0921cac1bcc28c9a19f121;hpb=ee0f106b09f38b1561d970ea4377eb199389298e;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts b/src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts index f2db4512..6c507fd8 100644 --- a/src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts +++ b/src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts @@ -19,7 +19,7 @@ export default class UIService extends AbstractUIService { async handleMessage(version: ProtocolVersion, command: ProtocolCommand, payload: Record): Promise { let messageResponse: Record; - if (this.messageHandlers.has(command) && command !== ProtocolCommand.UNKNOWN) { + if (this.messageHandlers.has(command)) { try { // Call the method to build the response messageResponse = await this.messageHandlers.get(command)(payload);