


The port will reflect the server's game port, even if your request specified the game's query port in the request.This will typically include the game's ip:port.bots: array of objects - Same schema as players.
#Not playing on a gameserver killing floor 3 Patch#
The content of this field MAY change on a per-protocol basis between GameDig patch releases (although not typical).raw: object - Additional information about the player if available (unstable).name: string - If the player's name is unknown, the string will be empty.password: boolean - If a password is required.The returned state object will contain the following keys: Additional 'rules' may be fetched into the raw field. requestRules: boolean - Valve games only.debug: boolean - Enables massive amounts of debug logging to stdout.ipFamily: number - IP family/version returned when looking up hostnames via DNS, can be 0 (IPv4 and IPv6), 4 (IPv4 only) or 6 (IPv6 only).givenPortOnly: boolean - Only attempt to query server on given port.This timeout is not commonly hit,Īs the socketTimeout typically fires first. attemptTimeout: number - Milliseconds allowed for an entire query attempt.Will cause many queries to take longer even if the server is online. socketTimeout: number - Milliseconds to wait for a single packet.maxAttempts: number - Number of attempts to query server in case of failure.If specifying the game port does not seem to work as expected, passing in port: number (optional) - Connection port or query port for the game server.host: string - Hostname or IP of the game server.type: string - One of the game IDs listed in the game list below.Const Gamedig = require ( 'gamedig' ) Gamedig.
