rcon-node
Version:
A TypeScript RCON client library for modern game servers.
18 lines • 489 B
TypeScript
import { EventEmitter } from "node:events";
import { Game } from "./game";
export interface RconOptions {
host: string;
port: number;
password: string;
game?: Game;
secure?: boolean;
timeout?: number;
}
export declare class Rcon extends EventEmitter {
private client;
constructor(options: RconOptions);
send(command: string): Promise<string>;
end(): void;
static connect(options: RconOptions): Promise<Rcon>;
}
//# sourceMappingURL=rcon.d.ts.map