Skip to content

TypeError: r.createConnection is not a function #21

@germanllop

Description

@germanllop

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions