Source RCON library
A simple Node.js library for the Source RCON Protocol
Installation
yarn add source-rcon-lib
Usage
This is a promise-based library.
Examples
Establishing a connection:
const connect = ; // these values are default ;
Sending a command to list all players in server:
const send = ; ;
Disconnecting from RCON server:
const disconnect = ; ;
API
Function | Arguments | Returns |
---|---|---|
connect | url (string), port (string), password (string) | Promise |
send | command (string) | Promise |
disconnect | none | Promise |
Upcoming
- tests