There is a promise library, at least in later versions of Espruino. createServer will create a second server in JS which will confuse matters, but presumably the ESP8266 doesn't check for overlapping sockets, or you're not calling .listen twice.
Moving this to the ESP8266 forum though - folks there might know what happens with connected.
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.
There is a promise library, at least in later versions of Espruino.
createServer
will create a second server in JS which will confuse matters, but presumably the ESP8266 doesn't check for overlapping sockets, or you're not calling.listen
twice.Moving this to the ESP8266 forum though - folks there might know what happens with
connected
.