add version check for 20230414 client

This commit is contained in:
Devin Zuczek
2026-07-23 12:23:30 -04:00
parent 7ab171b646
commit 2f6a40279d
10 changed files with 42 additions and 23 deletions
+1 -7
View File
@@ -7,6 +7,7 @@ import {
createRoomInstance,
deleteExpiredPresence,
deletePresence,
GAME_VERSION,
getAccount,
getClubSummary,
getExpiredPresenceInstanceIds,
@@ -140,13 +141,6 @@ type Presence = StoredPresence<RoomInstance>
*/
const PRESENCE_REFRESH_THRESHOLD = 300
/**
* Game build version reported in presence. This is a server-side constant — the
* client doesn't supply it, and an empty value breaks the client's
* presence/version handling. Matches our target 2023 client build.
*/
const GAME_VERSION = '20230302'
/**
* Default `/player` payload, served whenever the `id` is missing/invalid or the
* account isn't found. Inlined here (Workers have no filesystem). The stub player