mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 18:21:24 +00:00
Handle websocket connection on capacitor apps
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user