When there is no res.on('data') event handler then the res.on('close') handler is never called.
No, I reckon that's a bug - thanks for letting me know! I'll get a fix in for that.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
No, I reckon that's a bug - thanks for letting me know! I'll get a fix in for that.