Just to add that:
var req = require('http').request(options, function(res) { // ... }); req.on('close', function() { ... });
Should also work for you - and might be better.
@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.
Just to add that:
Should also work for you - and might be better.