QueryInput<
G> =object&CanonicalGameId<G> extends"a2s"?object:object
Input accepted by the public query() entry point. Generic A2S requires its query port.
Type Declaration
game
readonlygame:G
host
readonlyhost:string
DNS hostname or IP literal. URL syntax is intentionally not accepted.
mode?
readonlyoptionalmode?:QueryMode
onSource?
readonlyoptionalonSource?: (event) =>void
Called synchronously as each source starts and completes. Every source in the result's
sources has completed before the query resolves, and no call follows. Exceptions thrown by
the callback are ignored and never change the result.
Parameters
event
Returns
void
signal?
readonlyoptionalsignal?:AbortSignal
Caller cancellation propagated to every outstanding operation.
timeoutMs?
readonlyoptionaltimeoutMs?:number
Global deadline from 1 through 30,000 ms; defaults to 5,000 ms.
Type Parameters
G
G extends GameInputId = GameInputId