mirror of
https://github.com/danbulant/slightlyComplicatedTicTacToe
synced 2026-07-06 03:30:55 +00:00
update wss address
This commit is contained in:
parent
c7df814200
commit
df026dd466
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ export class WebsocketConnection extends EventTarget {
|
||||||
}
|
}
|
||||||
|
|
||||||
connect() {
|
connect() {
|
||||||
const host = location.hostname.includes("danbulant.eu") ? "wss://multidie.danbulant.cloud" : "ws://" + location.hostname + ":8080";
|
const host = location.hostname.includes("danbulant.eu") ? "wss://tictactoe.danbulant.cloud" : "ws://" + location.hostname + ":8080";
|
||||||
this.ws = new WebSocket(host + "/?name=" + encodeURIComponent(this.name));
|
this.ws = new WebSocket(host + "/?name=" + encodeURIComponent(this.name));
|
||||||
this.ws.addEventListener("open", (e) => {
|
this.ws.addEventListener("open", (e) => {
|
||||||
console.log("WS ready");
|
console.log("WS ready");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue