From 7ae0a01cf6210ff455818eb02042c297cf5eecc6 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Thu, 15 Nov 2018 23:03:50 +0100 Subject: [PATCH] server is tunneled through port 443 now --- public_html/js/client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public_html/js/client.js b/public_html/js/client.js index 1b30cf6..05f0757 100644 --- a/public_html/js/client.js +++ b/public_html/js/client.js @@ -1,6 +1,6 @@ // Constants and variables -//const wsUri = "ws://localhost:8765"; -const wsUri = "ws://chat.glitch-in.space:32715"; +//const wsUri = "ws://localhost:32715"; +const wsUri = "wss://chat.glitch-in.space:443/ws/"; let websocket; @@ -29,7 +29,7 @@ function onOpen(evt) { } function onClose(evt) { - console.log("Connection closed."); + console.log("Connection closed (code " + evt.code + "): ", evt); } function onMessage(evt) { @@ -37,7 +37,7 @@ function onMessage(evt) { } function onError(evt) { - console.error('Error: "' + evt.data + '".'); + console.error('Connection error: ', evt); }