diff options
author | Nikhil Ashoka <a.nikhil@ibm.com> | 2023-05-12 10:24:27 +0300 |
---|---|---|
committer | Kiran Kumar Ballapalli <kirankumarb@ami.com> | 2023-07-27 10:26:06 +0300 |
commit | 37b22a13319f467e494dcb201570cdde840f8412 (patch) | |
tree | a5db4c17685b2ee480229cc5597ca13ec33108a3 /src/views/Operations/SerialOverLan/SerialOverLanConsole.vue | |
parent | 6a3b7b5d65375b8039d42923e5fce99f66c62d87 (diff) | |
download | webui-vue-37b22a13319f467e494dcb201570cdde840f8412.tar.xz |
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 <a.nikhil@ibm.com>
Change-Id: I6136e09458284b76f5b03f89be247db3e3ff82fd
Diffstat (limited to 'src/views/Operations/SerialOverLan/SerialOverLanConsole.vue')
-rw-r--r-- | src/views/Operations/SerialOverLan/SerialOverLanConsole.vue | 7 |
1 files 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 |