Node.JS high-level wrapper for SRCDS's remote console (RCON) https://developer.valvesoftware.com/wiki/RCON
npm install srcds-rcon
If you think the npm version is outdated, you may install from github
npm install randunel/node-srcds-rcon
This is a node driver for SRCDS's RCON. While it should work on all SRCDS versions, it has only been tested against the Source 2009 (orangebox) protocol. Development uses the latest CS:GO server build.
The current version
2.x requires node.js version 4.x or newer. For older node.js versions including 0.8, install srcds-rcon
1.1.7. All development uses node.js 5.x.
Install dev dependencies (
npm install does that by default). Set up a csgo server and bind it to
127.0.0.1:27015, run it with
rcon_password test. Then run
Alternatively, set up a different server and edit
getIntegrationAuth to return login details to the desired test server.
First establish connection
let Rcon = ;let rcon =;rcon;
let rcon =address: '192.168.1.10'password: 'test';rcon;
Specify command timeout
Disconnect once finished
Some errors may contain partial command output. That indicates that the command was run, but reply packets have been lost.
When an error is returned, even if it doesn't contain a partial output, there is no guarantee the command was not run. The protocol uses udp and the packets sometimes get lost. The only guarantee the command did run is when the error contains a partial output.