rcon-node
Version:
A TypeScript RCON client library for modern game servers.
14 lines • 590 B
TypeScript
import { Buffer } from "node:buffer";
export declare const PACKET_TYPE_AUTH = 3;
export declare const PACKET_TYPE_COMMAND = 2;
export declare const PACKET_TYPE_RESPONSE = 0;
export declare const PACKET_TYPE_AUTH_RESPONSE = 2;
/**
* Creates a packet buffer for the Valve RCON protocol.
* @param id The packet identifier.
* @param type The packet type (e.g., auth, command).
* @param body The packet body/payload.
* @returns The constructed packet as a Buffer.
*/
export declare function createPacket(id: number, type: number, body: string): Buffer;
//# sourceMappingURL=packet.d.ts.map