From 289600de243235fd1b02ea3284a5379a55416cf8 Mon Sep 17 00:00:00 2001 From: sennevb Date: Sun, 22 Oct 2017 19:21:41 +0200 Subject: [PATCH] compression --- libs/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/api.js b/libs/api.js index c8907a2..9743f74 100644 --- a/libs/api.js +++ b/libs/api.js @@ -110,7 +110,9 @@ module.exports = function(logger, portalConfig, poolConfigs){ }); res.write('\n'); var uid = Math.random().toString(); + req.on("close", function() { _this.liveStatConnections[uid] = res; + res.flush(); req.on("close", function() { delete _this.liveStatConnections[uid]; });