server is tunneled through port 443 now
This commit is contained in:
parent
94e5e7f96c
commit
7ae0a01cf6
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue