diff --git a/src/websocket/websocket_config.js b/src/websocket/websocket_config.js index ef16497..4864810 100644 --- a/src/websocket/websocket_config.js +++ b/src/websocket/websocket_config.js @@ -1,4 +1,9 @@ -const url = process.env.VUE_APP_WEBSOCKET; + +let host = window.location.host; + if (window.location.port.length > 0) { + host = window.location.host.substring(0, window.location.host.length - window.location.port.length - 1) + } +const url = `http://${host}:8088`; let stompClient = ''; let isConnected = false; let timer = '';