battleye-node
Version:
A TS/JS library for communicating with BattlEye’s RCon (Remote Console) protocol. Easily send commands, receive server responses, and automate server management for games protected by BattlEye anti-cheat.
18 lines (17 loc) • 383 B
TypeScript
import dgram from "dgram";
interface Config {
address: string;
port: number;
password: string;
connectionType?: "udp4" | "udp6";
}
export declare class UDPSocket {
config: Config;
socket: dgram.Socket;
isSocketOpen: boolean;
constructor(config: Config);
send(buffer: Buffer): void;
open(): void;
close(): void;
}
export default UDPSocket;