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.
17 lines (16 loc) • 391 B
TypeScript
export type LoginPacket = {
type: 0;
success: boolean;
};
export type CommandPacket = {
type: 1;
sequence: number;
message: string;
};
export type ServerMessagePacket = {
type: 2;
sequence: number;
message: string;
};
export type BEPacket = LoginPacket | CommandPacket | ServerMessagePacket;
export declare function parsePacket(msg: Buffer): BEPacket | null;