diff --git a/index.html b/index.html index b98ff24..cbb93bc 100644 --- a/index.html +++ b/index.html @@ -97,9 +97,19 @@
+
+

+ Whose turn is it? +

+

Please create or join a room

+
- - + + + How others will see you + + + Make sure, this is exactly the same for all players
diff --git a/js/remoteState.js b/js/remoteState.js index 9f8dd8b..46a0aa1 100644 --- a/js/remoteState.js +++ b/js/remoteState.js @@ -84,7 +84,7 @@ document.addEventListener("alpine:init", () => { iterations: 5000, }); - const topicPrefix = `im.dorian.whos-turn-is-it.${btoa( + const topicPrefix = `im.dorian.whose-turn-is-it.${btoa( Alpine.store("localState").room )}`; this._gameStateTopic = CryptoJS.SHA256( @@ -114,7 +114,7 @@ document.addEventListener("alpine:init", () => { // reset game if not connected after 5 seconds that.clear(); } - }, 1000 * 5); + }, 1000 * 4); that._client.subscribe(that._gameStateTopic); that._client.subscribe(that._currentPlayerTopic);