UI Server: rename defaults constants
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 4 Oct 2022 19:52:34 +0000 (21:52 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 4 Oct 2022 19:52:34 +0000 (21:52 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Configuration.ts
src/utils/Constants.ts

index 86763f988ae96c52a97f8b7c7b194f075fbda4ae..4fc46b059ffa9dfa1aa5ce4c99883e758eb12c68 100644 (file)
@@ -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')) {
index 6f5c8b8b8a7e9a48a0516439d557101c26a2c0ef..bfb4fbf38aaf34341dcbb03f6549126ae4e284a7 100644 (file)
@@ -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';