Repository
Current version released
4 years ago
Dependencies
Versions
Source API
Query information from a running source based game server.
Introduction
Based on Valves Source Server Queries this Library allows you to query basic information from source servers.
The Server reponds to :
A2S_INFO
Basic information about the server.
A2S_PLAYER
Details about each player on the server.
A2S_RULES
(broken since CSGO update 1.32.3.0 Feb 21, 2014)
The rules the server is using.
Required Flags to run:
--allow-net
--unstable
Example usage
import { getInfo, getPlayers } from "https://deno.land/x/csgo/mod.ts";
try {
var info = await getInfo("192.168.0.123", 27015);
var players = await getPlayers("192.168.0.123", 27015);
} catch (error) {
console.log(error);
}