connection upgrade with nginx

This commit is contained in:
batche
2022-12-14 11:18:02 +01:00
parent fd8435b632
commit 0877cd284f
4 changed files with 48 additions and 10 deletions

View File

@@ -25,8 +25,7 @@ class ClientInfoSpectator {
playerRightNextPos: VectorInteger;
}
const wsPort = 8042;
const wsUrl = "ws://transcendance:" + wsPort + "/pong";
const wsUrl = "ws://transcendance:8080/pong";
export let socket: WebSocket; /* TODO: A way to still use "const" not "let" ? */
export const clientInfo = new ClientInfo();
export const clientInfoSpectator = new ClientInfoSpectator(); // WIP, could refactor this