Rename UiProtocol.ts to UIProtocol.ts
[e-mobility-charging-stations-simulator.git] / src / types / ConfigurationData.ts
index 1a2dd165113188d52690eafb4ed5d4f64da553d5..10f2565a81f52a5b874c3331771cdd110c83a7f9 100644 (file)
@@ -1,21 +1,28 @@
+import { ServerOptions } from 'ws';
 import { StorageType } from './Storage';
 import type { WorkerChoiceStrategy } from 'poolifier';
 import { WorkerProcessType } from './Worker';
 
-export interface StationTemplateURL {
+export interface StationTemplateUrl {
   file: string;
   numberOfStations: number;
 }
 
+export interface UIWebSocketServerConfiguration {
+  enabled?: boolean;
+  options?: ServerOptions;
+}
+
 export interface StorageConfiguration {
   enabled?: boolean;
   type?: StorageType;
-  URI?: string;
+  uri?: string;
 }
 
 export default interface ConfigurationData {
-  supervisionURLs?: string[];
-  stationTemplateURLs: StationTemplateURL[];
+  supervisionUrls?: string[];
+  stationTemplateUrls: StationTemplateUrl[];
+  uiWebSocketServer?: UIWebSocketServerConfiguration;
   performanceStorage?: StorageConfiguration;
   autoReconnectMaxRetries?: number;
   distributeStationsToTenantsEqually?: boolean;