node-srcds-rcon icon indicating copy to clipboard operation
node-srcds-rcon copied to clipboard

TypeError: r.createConnection is not a function

Open germanllop opened this issue 7 years ago • 0 comments

Hi, I keep getting this error on connection, if I log the object there is no pproblem, maybe I'm missing some dependencies?

Here is my code:

let Rcon = require('srcds-rcon') let rcon = Rcon({ address: this.servers[index].ip, port: this.servers[index].port, password: this.servers[index].rcon_password }) console.log(rcon) rcon.connect().then(() => { console.log('connected') }).catch(console.error)

germanllop avatar Dec 16 '18 19:12 germanllop