Skip to content

Promise based rcon client, with support of types

Notifications You must be signed in to change notification settings

dathost/rcon-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dathost-rcon-client

Promise based rcon client, with support of types

Installation

npm i dathost-rcon-client

Usage

import { Rcon } from "dathost-rcon-client";
const client = new Rcon({
  // all of those are required!
  port: 25575,
  host: "localhost",
  password: "test",
});
try {
  await client.connect();
  const response = await client.send("status");
  console.log(response);
} catch (e) {
  console.log(`Got error ${e}`);
} finally {
  client.disconnect();
}

About

Promise based rcon client, with support of types

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.2%
  • JavaScript 1.8%