refactor(ui): cleanup configuration types and variables namespace
[e-mobility-charging-stations-simulator.git] / ui / web / src / composables / UIClient.ts
index fa1479ef7d4c1655c446cc436190648b4a03d401..d056f6314e68fc71011ef1e5e2d66704f393c9b1 100644 (file)
@@ -5,7 +5,7 @@ import {
   type ResponsePayload,
   ResponseStatus
 } from '@/types'
-import config from '@/assets/config'
+import configuration from '@/assets/config'
 
 type ResponseHandler = {
   procedureName: ProcedureName
@@ -111,8 +111,8 @@ export class UIClient {
 
   private openWS(): void {
     this.ws = new WebSocket(
-      `ws://${config.uiServer.host}:${config.uiServer.port}`,
-      config.uiServer.protocol
+      `ws://${configuration.uiServer.host}:${configuration.uiServer.port}`,
+      configuration.uiServer.protocol
     )
     this.ws.onmessage = this.responseHandler.bind(this)
     this.ws.onerror = errorEvent => {