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.
13 lines (12 loc) • 376 B
TypeScript
import dgram from "dgram";
import type { Config } from "./types.js";
type UDPConfig = Pick<Config, "address" | "port" | "password" | "connectionType">;
export declare class UDPSocket {
config: UDPConfig;
socket: dgram.Socket;
isSocketOpen: boolean;
constructor(config: UDPConfig);
send(buffer: Buffer): void;
close(): void;
}
export default UDPSocket;