Optimization: bind to this sendMessage()
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 15 Sep 2022 08:49:21 +0000 (10:49 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 15 Sep 2022 08:49:21 +0000 (10:49 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPRequestService.ts

index 921945e82cdea1bb92bee6373092151d12f8771c..68338670aa1c4dd710ec1310568328e7d13dd198 100644 (file)
@@ -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);