From: Jérôme Benoit Date: Tue, 4 Oct 2022 19:52:34 +0000 (+0200) Subject: UI Server: rename defaults constants X-Git-Tag: v1.1.76~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=adbddcb44d65e7268f661deacc4291d6cf6f6663;p=e-mobility-charging-stations-simulator.git UI Server: rename defaults constants Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 86763f98..4fc46b05 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -62,8 +62,8 @@ export default class Configuration { enabled: false, type: ApplicationProtocol.WS, options: { - host: Constants.DEFAULT_UI_WEBSOCKET_SERVER_HOST, - port: Constants.DEFAULT_UI_WEBSOCKET_SERVER_PORT, + host: Constants.DEFAULT_UI_SERVER_HOST, + port: Constants.DEFAULT_UI_SERVER_PORT, }, }; if (Configuration.objectHasOwnProperty(Configuration.getConfig(), 'uiServer')) { diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 6f5c8b8b..bfb4fbf3 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -117,8 +117,8 @@ export default class Constants { static readonly DEFAULT_PERFORMANCE_RECORDS_DB_NAME = 'e-mobility-charging-stations-simulator'; static readonly PERFORMANCE_RECORDS_TABLE = 'performance_records'; - static readonly DEFAULT_UI_WEBSOCKET_SERVER_HOST = 'localhost'; - static readonly DEFAULT_UI_WEBSOCKET_SERVER_PORT = 8080; + static readonly DEFAULT_UI_SERVER_HOST = 'localhost'; + static readonly DEFAULT_UI_SERVER_PORT = 8080; static readonly UNKNOWN_COMMAND = 'unknown command';