add invite game mode

This commit is contained in:
2026-11-15 19:19:35 +03:00
parent 8f70bb639d
commit a91eccbeaa
12 changed files with 600 additions and 58 deletions
@@ -9,6 +9,9 @@ mm.game_server_url = ENV.fetch("GAME_SERVER_URL", "ws://localhost:8080")
mm.match_ttl = ENV.fetch("MATCHMAKING_MATCH_TTL", 120).to_i
mm.token_ttl = ENV.fetch("MATCHMAKING_TOKEN_TTL", 120).to_i
# How long an invite code stays valid, in seconds.
mm.invite_ttl = ENV.fetch("MATCHMAKING_INVITE_TTL", 300).to_i
# How long a player waits in the queue before a timeout, in seconds.
mm.queue_ttl = ENV.fetch("MATCHMAKING_QUEUE_TTL", 60).to_i