EnriqCG / rcon-srcds

A zero-dependency Typescript library for the Source/Minecraft RCON Protocol
https://www.npmjs.com/package/rcon-srcds
MIT License
60 stars 20 forks source link

Rcon is not defined. #2

Closed rogfish closed 4 years ago

rogfish commented 5 years ago

Getting an error telling me that Rcon is not defined. Im new to javascript, so I have not been able to figure out what I did wrong.

EnriqCG commented 5 years ago

Hey @rogfish, can you paste some code here so I can help you?

EnriqCG commented 4 years ago

Oopsie, it looks like the example in the README has an error...

const rcon = require('rcon-srcds');  // rcon defined
const server = new Rcon({ port: 25010 });  // Rcon used :/
EnriqCG commented 4 years ago

dc89c51 removes the confusion.