establishing ws connection, starting on messages section

This commit is contained in:
metacryst
2026-02-01 16:11:11 -06:00
parent 6d50337e3b
commit 6262ce53aa
10 changed files with 41 additions and 24 deletions

View File

@@ -10,8 +10,8 @@ class Connection {
init = async () => {
return new Promise((resolve, reject) => {
const url = window.location.hostname.includes("local")
? "ws://" + window.location.host
: "wss://" + window.location.hostname + window.location.pathname;
? "ws://" + window.location.host + "/ws"
: "wss://" + window.location.hostname + window.location.pathname + "/ws";
this.ws = new WebSocket(url);