Closed Shelly7w7 closed 3 years ago
It is quite simple actually. You should use the response event to accomplish this.
const conn = new Rcon('localhost',1234,"my-pass");
conn.on('response',function(res){
console.log(res);
});
But hopefully I understood you correctly though and this managed to help you.
How do I capture the output send in the console ?