1.0.3 • Published 1 year ago

easy-rcon v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Easy RCON

A very simple & easy-to-use RCON client for TCP based RCON servers.

Installation

npm install easy-rcon
yarn install easy-rcon

Usage

Example NodeJS Script

import RCON from "easy-rcon"

try {
    const rcon = RCON()
    rcon.connect(
        "127.0.0.1",
        27015,
        "YOUR_RCON_PASSWORD"
    )

    const response = rcon.send("info")
    console.log(response)
    rcon.disconnect()
} catch (error) {
    console.error(error)
}

Connecting

Connect to a remote RCON server using:

rcon_client.connect(host, port, password)

Sending Command

Send a command to a remote RCON server using:

rcon_client.send(command)

Disconnecting

Disconnect from the remote RCON server using:

rcon_client.disconnect()

Limitations

  • Does not support multi-packet responses

Roadmap

  1. Implement support for multi-packet responses
  2. Add game specific libraries (e.g. CS, Palword etc)
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago