Creates a new Source server query instance.
The IP address or hostname of the server.
The port number of the server.
The timeout duration (in milliseconds) for server queries. Default is 5000.
Enables debug logging if true. Default is false.
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