X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConfiguration.ts;h=afc992f8e7841b35f44a49841ee1c63f452e5285;hb=9d73266c8bb85d7e2bc1fab9954a76910fd689eb;hp=5de867147666b9e2b5dfd201af3a20edfc968358;hpb=53e5fd67dea2dd83ec9c34d963dd6e502ec46f5c;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 5de86714..afc992f8 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -11,10 +11,11 @@ import ConfigurationData, { UIServerConfiguration, WorkerConfiguration, } from '../types/ConfigurationData'; -import { EmptyObject } from '../types/EmptyObject'; -import { HandleErrorParams } from '../types/Error'; +import type { EmptyObject } from '../types/EmptyObject'; +import type { HandleErrorParams } from '../types/Error'; import { FileType } from '../types/FileType'; import { StorageType } from '../types/Storage'; +import { ApplicationProtocol } from '../types/UIProtocol'; import { WorkerProcessType } from '../types/Worker'; import WorkerConstants from '../worker/WorkerConstants'; import Constants from './Constants'; @@ -58,6 +59,7 @@ export default class Configuration { } let uiServerConfiguration: UIServerConfiguration = { enabled: true, + type: ApplicationProtocol.WS, options: { host: Constants.DEFAULT_UI_WEBSOCKET_SERVER_HOST, port: Constants.DEFAULT_UI_WEBSOCKET_SERVER_PORT,