summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Ashoka <a.nikhil@ibm.com>2023-05-12 10:24:27 +0300
committerKiran Kumar Ballapalli <kirankumarb@ami.com>2023-07-27 10:26:06 +0300
commit37b22a13319f467e494dcb201570cdde840f8412 (patch)
treea5db4c17685b2ee480229cc5597ca13ec33108a3
parent6a3b7b5d65375b8039d42923e5fce99f66c62d87 (diff)
downloadwebui-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
-rw-r--r--src/views/Operations/SerialOverLan/SerialOverLanConsole.vue7
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