repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor(ui): cleanup configuration types and variables namespace
[e-mobility-charging-stations-simulator.git]
/
ui
/
web
/
src
/
composables
/
UIClient.ts
diff --git
a/ui/web/src/composables/UIClient.ts
b/ui/web/src/composables/UIClient.ts
index fa1479ef7d4c1655c446cc436190648b4a03d401..d056f6314e68fc71011ef1e5e2d66704f393c9b1 100644
(file)
--- a/
ui/web/src/composables/UIClient.ts
+++ b/
ui/web/src/composables/UIClient.ts
@@
-5,7
+5,7
@@
import {
type ResponsePayload,
ResponseStatus
} from '@/types'
type ResponsePayload,
ResponseStatus
} from '@/types'
-import config from '@/assets/config'
+import config
uration
from '@/assets/config'
type ResponseHandler = {
procedureName: ProcedureName
type ResponseHandler = {
procedureName: ProcedureName
@@
-111,8
+111,8
@@
export class UIClient {
private openWS(): void {
this.ws = new WebSocket(
private openWS(): void {
this.ws = new WebSocket(
- `ws://${config
.uiServer.host}:${config
.uiServer.port}`,
- config.uiServer.protocol
+ `ws://${config
uration.uiServer.host}:${configuration
.uiServer.port}`,
+ config
uration
.uiServer.protocol
)
this.ws.onmessage = this.responseHandler.bind(this)
this.ws.onerror = errorEvent => {
)
this.ws.onmessage = this.responseHandler.bind(this)
this.ws.onerror = errorEvent => {