Handle websocket connection on capacitor apps

This commit is contained in:
oleksandr-shysh
2025-06-20 11:20:26 +03:00
parent 0cfe85ab4b
commit bc6b6e4c14
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ export class Transport {
) {
this.startPing();
this.killExistingSocket();
const wsHost = window.location.host;
const wsHost = process.env.WEBSOCKET_URL || window.location.host;
const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:";
const workerPath = this.lobbyConfig.serverConfig.workerPath(
this.lobbyConfig.gameID,