diff --git a/client/index.html b/client/index.html index 1f2bc16..333249f 100644 --- a/client/index.html +++ b/client/index.html @@ -1,69 +1,74 @@ - + + Box Game - - + + +
-
-

Box Game

-

Jump, collect hearts, beat your friends.

+
+

Box Game

+

Jump, collect hearts, beat your friends.

- - + + -
choose a room
+
choose a room
- - + + - -
- - -
+ +
+ + +
-

-
+

+
- + + + - + + diff --git a/client/index.js b/client/index.js index 2ce0173..2d02a8f 100644 --- a/client/index.js +++ b/client/index.js @@ -1,17 +1,13 @@ -// ============== SOCKET CONNECTION ============== -// Points to local server; update to production URL when deploying -const _host = window.location.hostname; -const SERVER_URL = - _host === "" || _host === "localhost" || _host === "127.0.0.1" - ? "http://localhost:3000" - : "https://server.boxgame.shadyggs.xyz"; - -const socket = io(SERVER_URL, { - reconnectionDelay: 1000, - reconnectionDelayMax: 5000, - transports: ["websocket"], - autoConnect: true, -}); +// ============== CONFIG ============== +// GATEWAY_URL is injected by index.html as a