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);
}