fix: fix off-by-one in ATG statuses handling
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-server / UIWebSocketServer.ts
index 6d6dc6df9fcd6d66a77ec3455d1f0ef76787c08e..c135cb13859d09d212a8bda3060f6c95f7729c01 100644 (file)
@@ -53,7 +53,7 @@ export class UIWebSocketServer extends AbstractUIServer {
           ws.close(WebSocketCloseEventStatusCode.CLOSE_INVALID_PAYLOAD)
           return
         }
-        const [requestId] = request as ProtocolRequest
+        const [requestId] = request
         this.responseHandlers.set(requestId, ws)
         this.uiServices
           .get(version)