Is that normal that a function as only parameter of response.end is not called. I was expecting the same behavior as on Node .
http.createServer(function (req, res) { //... res.end(function(){ // never called console.log('GET done.'); digitalWrite(LED2,0); }); }
I don't find the sources of http module. But it seems to always consider first arg as data.
Is there another way to achieve this?
@Mr.Peu 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.
Is that normal that a function as only parameter of response.end is not called. I was expecting the same behavior as on Node .
I don't find the sources of http module. But it seems to always consider first arg as data.
Is there another way to achieve this?