package
Simple SRCDS RCON for node.js
npm install sourceconGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
npm install sourcecon
var SourceCon = require("sourcecon");
var con = new SourceCon("127.0.0.1", 25080);
con.connect(function(err) {
if (err) {
throw(err);
}
con.auth("rconpass", function(err) {
if (err) {
throw(err);
}
con.send("status", function(err, res) {
if (err) {
throw(err);
}
console.log("STATUS: "+res);
});
...
});
});npm install -g sourceconsourcecon on the command line to start the RCON consoleLicense: Apache License, Version 2.0