From cfc3e81820871ae28a51e36b0587b7ca1df5b513 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Tue, 20 Nov 2018 07:45:24 -0800 Subject: [PATCH] Fixes typo #6 --- assets/pages/Container.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/pages/Container.vue b/assets/pages/Container.vue index 24ebb333..0ea240d7 100644 --- a/assets/pages/Container.vue +++ b/assets/pages/Container.vue @@ -60,7 +60,7 @@ export default { ws = null; this.messages = []; } - const protocol = SSL_ENABLED ? "wws" : "ws"; + const protocol = SSL_ENABLED ? "wss" : "ws"; ws = new WebSocket(`${protocol}://${window.location.host}${BASE_PATH}/api/logs?id=${this.id}`); ws.onopen = e => console.log("Connection opened."); ws.onclose = e => console.log("Connection closed.");