fix: handle WebSocket opening error
[e-mobility-charging-stations-simulator.git] / src / utils / Constants.ts
index 2223c5efc8fc118bb0723f95b1dcdd7edc60a5c3..45d864754f9198f819698dd4e6e2bccb3310fab7 100644 (file)
@@ -2,7 +2,9 @@ import {
   type AutomaticTransactionGeneratorConfiguration,
   type ChargingStationInfo,
   CurrentType,
+  type IncomingRequestCommand,
   OCPPVersion,
+  type RequestCommand,
   VendorParametersKey
 } from '../types/index.js'
 
@@ -77,11 +79,11 @@ export class Constants {
   static readonly DEFAULT_UI_SERVER_HOST = 'localhost'
   static readonly DEFAULT_UI_SERVER_PORT = 8080
 
-  static readonly UNKNOWN_COMMAND = 'unknown command'
+  static readonly UNKNOWN_COMMAND = 'unknown command' as RequestCommand | IncomingRequestCommand
 
   static readonly MAX_RANDOM_INTEGER = 281474976710654
 
-  static readonly STOP_CHARGING_STATIONS_TIMEOUT = 120000 // Ms
+  static readonly STOP_CHARGING_STATIONS_TIMEOUT = 60000 // Ms
 
   static readonly EMPTY_FROZEN_OBJECT = Object.freeze({})
   static readonly EMPTY_FUNCTION = Object.freeze(() => {