UNPKG

rcon-node

Version:

A TypeScript RCON client library for modern game servers.

14 lines 415 B
import { EventEmitter } from "node:events"; export class BaseClient extends EventEmitter { constructor(options) { super(); this.options = options; } async testAuthentication() { const response = await this.send("echo test"); if (!response.includes("test")) { throw new Error("Authentication failed."); } } } //# sourceMappingURL=base.client.js.map