From: Jérôme Benoit Date: Thu, 15 Sep 2022 08:49:21 +0000 (+0200) Subject: Optimization: bind to this sendMessage() X-Git-Tag: v1.1.74~37 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=511c18973d15210aabf9cb0789f146bd8c087759;p=e-mobility-charging-stations-simulator.git Optimization: bind to this sendMessage() Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 921945e8..68338670 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -37,6 +37,7 @@ export default abstract class OCPPRequestService { this.ajv = new Ajv(); ajvFormats(this.ajv); this.requestHandler.bind(this); + this.sendMessage.bind(this); this.sendResponse.bind(this); this.sendError.bind(this); this.internalSendMessage.bind(this);