mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 22:51:30 -07:00
add version check for 20230414 client
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user