Hi
Trying to connect to aardwolf.org MUD, and there isn't any output.
Example code:
const telnetlib = require("telnetlib");
const c = telnetlib.createConnection(
{
host: "aardwolf.org",
port: 23,
},
() => {
c.on("data", (data) => {
console.log("data", data.toString());
});
}
);
I'm not sure why, it seems related to this: https://github.com/cadpnq/telnetlib/blob/main/src/TelnetSocket/TelnetReader.js#L43
It works with this hack:
const telnetlib = require("telnetlib");
const c = telnetlib.createConnection(
{
host: "aardwolf.org",
port: 23,
},
() => {
c.reader.flushPolicy.endOfChunk = true;
c.on("data", (data) => {
console.log("data", data.toString());
});
});
Hi
Trying to connect to aardwolf.org MUD, and there isn't any output.
Example code:
I'm not sure why, it seems related to this: https://github.com/cadpnq/telnetlib/blob/main/src/TelnetSocket/TelnetReader.js#L43
It works with this hack: