X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2FOCPPRequestService.ts;h=a81974adf3ea527cbf34fdadd4ac28dfc8d054ad;hb=d95e46b379d72a1447a2ff5ccd1146aba8881b7d;hp=6ebb4e3841bc1b57c914fc890b1cc2f911d0cc07;hpb=52748e2c6d0b08cecaa3e626f615c92ba6bbf758;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 6ebb4e38..a81974ad 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -55,7 +55,7 @@ export default abstract class OCPPRequestService { this.chargingStation.wsConnection.send(messageToSend); } else if (commandName !== RequestCommand.BOOT_NOTIFICATION) { // Buffer it - this.chargingStation.addMessageToBuffer(messageToSend); + this.chargingStation.addToMessageQueue(messageToSend); // Reject it return rejectCallback(new OCPPError(commandParams.code ? commandParams.code : ErrorType.GENERIC_ERROR, commandParams.message ? commandParams.message : `WebSocket closed for message id '${messageId}' with content '${messageToSend}', message buffered`, commandParams.details ? commandParams.details : {})); }