Skip to main content

AppDiscovery

Where one app lives, and therefore which origin a client should talk to before it does anything else. Public: this is the same information the published DNS names already expose.

type AppDiscovery {
appId: BigInt!
datacenterCode: String
gameApiUrl: String
gameApiWsUrl: String
}

Fields

AppDiscovery.appId ● BigInt! non-null scalar

The app this entry describes, echoed back so a batched result can be matched to its request.

AppDiscovery.datacenterCode ● String scalar

Datacenter code the app is placed in (for example or, va), or null if the app has no placement yet.

AppDiscovery.gameApiUrl ● String scalar

HTTPS GraphQL origin for this app's OWN datacenter. Move here BEFORE authenticating: logging in through the shared origin writes the session on whichever datacenter DNS happened to pick, and the app token then has to be minted across a WAN. Null when the app has no placement, in which case keep using the shared origin.

AppDiscovery.gameApiWsUrl ● String scalar

The wss:// form of gameApiUrl, for the subscription socket and the binary relay.

Returned By

appDiscovery query