diff --git a/libs/api.js b/libs/api.js index c8907a2..ad25f6f 100644 --- a/libs/api.js +++ b/libs/api.js @@ -111,6 +111,7 @@ module.exports = function(logger, portalConfig, poolConfigs){ res.write('\n'); var uid = Math.random().toString(); _this.liveStatConnections[uid] = res; + res.flush(); req.on("close", function() { delete _this.liveStatConnections[uid]; });