A basic RCON implementation in Deno, based off Source RCON Protocol
The API is very simple. There are two exposed methods on RCON
class, connect()
, send()
, and sendSync()
.
import { RCON } from './mod.ts';
const rcon = new RCON();
await rcon.connect('127.0.0.1', 19132, 'Password123');
await rcon.send('say hello', 'COMMAND');
TS-RCON - https://github.com/bmiddha/ts-rcon (Part of buffer implementation and non-ASCII character removal was used)