RCONClientV1
The RCONClientV1
class is the client that is used for interacting with the RCONv1 API.
Constructor
const { RCONClientV1 } = require("hll-ircon");
const client = new RCONClientV1({
host: "127.0.0.1", // Server Host
port: 8000, // RCON Port
password: "RCON_PASSWORD", // RCON Password
debug: false, // Whether or not to enable debugging
inactivityTimeout: 1_000, // Default timeout to wait for packets before a message is considered finished
expediteShortResponses: false // Dont wait for multiple packets for short responses ("SUCCESS"|"FAIL")
});