From 37b22a13319f467e494dcb201570cdde840f8412 Mon Sep 17 00:00:00 2001 From: Nikhil Ashoka Date: Fri, 12 May 2023 12:54:27 +0530 Subject: WebSocket tries to connect with 'console/default' instead of 'console0' - This patchset will try to connect to the WebSocket with the path 'console/default'. - Until now, we were connecting to 'console0'. Signed-off-by: Nikhil Ashoka Change-Id: I6136e09458284b76f5b03f89be247db3e3ff82fd --- src/views/Operations/SerialOverLan/SerialOverLanConsole.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue b/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue index 767fd8bd..fc807393 100644 --- a/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue +++ b/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue @@ -93,8 +93,7 @@ export default { methods: { openTerminal() { const token = this.$store.getters['authentication/token']; - - this.ws = new WebSocket(`wss://${window.location.host}/console0`, [ + this.ws = new WebSocket(`wss://${window.location.host}/console/default`, [ token, ]); @@ -129,11 +128,11 @@ export default { try { this.ws.onopen = function () { - console.log('websocket console0/ opened'); + console.log('websocket console/default opened'); }; this.ws.onclose = function (event) { console.log( - 'websocket console0/ closed. code: ' + + 'websocket console/default closed. code: ' + event.code + ' reason: ' + event.reason -- cgit v1.2.3