[match] add tachyon server configuration

This commit is contained in:
Devin Zuczek
2026-08-24 20:15:07 -04:00
parent b8d5103d57
commit 5382bf96e3
5 changed files with 39 additions and 14 deletions
+12
View File
@@ -52,6 +52,18 @@ export type Env = SharedHonoEnv & {
PHOTON_VOICE_APP_ID?: string
/** The Photon Chat application id. Optional; see {@link Env.PHOTON_REALTIME_APP_ID}. */
PHOTON_CHAT_APP_ID?: string
/**
* The Tachyon voice server the client is handed as `voiceConnectionInfo` on
* `GET /player/connection-info`, as `host:port` (e.g. `66.228.47.217:7777`).
* Optional, and EMPTY when unset — no separate voice server. Not a secret (the
* client receives it in the clear), so a plain var like the Photon ids.
*/
TACHYON_HOST_PORT?: string
/**
* The id of that voice server, handed to the client as `voiceServerId` (e.g.
* `server-1`). Optional; see {@link Env.TACHYON_HOST_PORT} — set both or neither.
*/
TACHYON_NAME?: string
/**
* The Photon region every session is pinned to — both the region named in the connection
* info and the one stamped on every room instance, which must agree. Optional; unlike the