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
diff --git a/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue b/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue
index 767fd8b..fc80739 100644
--- a/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue
+++ b/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue
@@ -93,8 +93,7 @@
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 @@
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