Aktualisiere die Socket-Verbindungs-URL, um das Protokoll dynamisch zu verwenden
This commit is contained in:
@@ -3,7 +3,7 @@ import LobbyHandler from "./Handler/LobbyHandler.js";
|
|||||||
class ServerConnectionManager {
|
class ServerConnectionManager {
|
||||||
constructor() {
|
constructor() {
|
||||||
/**@type {import("../../../../backend/node_modules/socket.io-client".Socket} für Autocompletions VSC*/
|
/**@type {import("../../../../backend/node_modules/socket.io-client".Socket} für Autocompletions VSC*/
|
||||||
this.socket = io(`http://${window.location.hostname}:${window.location.port}`);
|
this.socket = io(`${window.location.protocol}//${window.location.hostname}:${window.location.port}`);
|
||||||
|
|
||||||
this.lobbyContainer = document.getElementById("mainDiv");
|
this.lobbyContainer = document.getElementById("mainDiv");
|
||||||
this.createBtn = document.getElementById("createBtn");
|
this.createBtn = document.getElementById("createBtn");
|
||||||
|
|||||||
Reference in New Issue
Block a user