refactor(simulator): consolidate connector status transition
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPConstants.ts
index c8b110e4262131d4ea33f6332cbe65766f53ff70..e4ac8d7ffce43dbfa19a66ade823e6792ed3df9d 100644 (file)
@@ -11,6 +11,9 @@ import {
 import { Constants } from '../../utils';
 
 export class OCPPConstants {
+  static readonly OCPP_WEBSOCKET_TIMEOUT = 60000; // Ms
+  static readonly OCPP_TRIGGER_MESSAGE_DELAY = 500; // Ms
+
   static readonly OCPP_REQUEST_EMPTY = Constants.EMPTY_FREEZED_OBJECT;
   static readonly OCPP_RESPONSE_EMPTY = Constants.EMPTY_FREEZED_OBJECT;
   static readonly OCPP_RESPONSE_ACCEPTED = Object.freeze({ status: GenericStatus.Accepted });
@@ -89,7 +92,7 @@ export class OCPPConstants {
     status: DataTransferStatus.REJECTED,
   });
 
-  private constructor() {
+  protected constructor() {
     // This is intentional
   }
 }