Skip to content

zachshattuck/rconjs

Repository files navigation

rconjs

A simple RCON client written in TypeScript.

Installation

npm install rconjs

Usage

import RCONClient from 'rconjs';

const client = new RCONClient('localhost', 25575, 'password');

async function start() {
  try {
    await client.connect()
    await client.authorize()

    client.send('say Hello from rconjs!', (res) => {
      console.log(res)
    })
  } catch(e) {
    console.error(e)
  }
}

start()

About

Minimal RCON client for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published