QueryHost
Esc

Documentation menu

API reference · interfaces

Interface: A2sData

Generated from the QueryHost package public TypeScript contract.

Protocol facts exposed by the generic Source or GoldSource A2S profile.

Properties

appId?

readonly optional appId?: number

Present only for modern Source-style Info responses; 16 bits, so larger App IDs truncate.


bots

readonly bots: number


environment

readonly environment: "linux" | "macos" | "windows"


folder

readonly folder: string


game

readonly game: string


players?

readonly optional players?: readonly A2sPlayer[]

Omitted when Player is skipped or unavailable; empty means the server confirmed no players.


protocol

readonly protocol: number


serverType

readonly serverType: "dedicated" | "listen" | "proxy"


steamGameId?

readonly optional steamGameId?: string

Full 64-bit Steam game ID as decimal text, when a Source-style Info response provides it.


tags?

readonly optional tags?: readonly string[]

Server-advertised tags, when a Source-style Info response provides them.


vac

readonly vac: boolean