Fix broken console output and startup detection

Sends a status command to RCON once it has connected.
This commit is contained in:
Ryan Kubiak 2019-11-11 19:28:57 -08:00
parent 899a560f49
commit c9e65b2cbf

View File

@ -47,6 +47,10 @@ var poll = function( ) {
process.stdin.resume();
process.stdin.setEncoding("utf8");
var util = require("util");
// Hack to fix broken console output
ws.send(createPacket('status'));
process.stdin.on('data', function (text) {
ws.send(createPacket(text));
});