Creates a new Source server query instance.
A JSON object containing the configuration for the Source instance.
Optionaldebug?: booleanEnables debug logging if set to true.
If not provided, the default value is false.
The IP address or hostname of the server. This is a required property.
The port number of the server. This is a required property.
Optionaltimeout?: numberThe timeout duration (in milliseconds) for server queries. If not provided, the default value is 5000.
Retrieves server information.
A promise that resolves with the server information.
Retrieves player information.
A promise that resolves with an array of player information.
A class for querying Source game servers (e.g., GoldSource, Source Engine) using the A2S protocol. Supports retrieving server information, player information, and server rules.
Example