fix: handle WebSocket opening error
[e-mobility-charging-stations-simulator.git] / src / utils / Constants.ts
index 0cfa5f99b78aa48adc42eb6e0ddbd8b7a75d545a..45d864754f9198f819698dd4e6e2bccb3310fab7 100644 (file)
@@ -2,7 +2,9 @@ import {
   type AutomaticTransactionGeneratorConfiguration,
   type ChargingStationInfo,
   CurrentType,
+  type IncomingRequestCommand,
   OCPPVersion,
+  type RequestCommand,
   VendorParametersKey
 } from '../types/index.js'
 
@@ -77,7 +79,7 @@ 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