Insert port number into WSS connect.

This commit is contained in:
yukirij 2024-09-03 22:54:14 -07:00
parent 2260480741
commit 23f4847956

View File

@ -1,7 +1,7 @@
function RECONNECT() { function RECONNECT() {
if(SOCKET === null) { if(SOCKET === null) {
console.log("Websocket connecting.."); console.log("Websocket connecting..");
SOCKET = new WebSocket("wss://" + location.host); SOCKET = new WebSocket("wss://" + location.hostname + ":38612");
SOCKET.binaryType = "arraybuffer"; SOCKET.binaryType = "arraybuffer";
SOCKET.addEventListener("error", () => { SOCKET.addEventListener("error", () => {
SOCKET = null; SOCKET = null;