I'm not 100% sure on that, the ESP8266 itself may auto-reconnect if the AP goes down - however there is a disconnected event on wifi that you can hook onto in order to manually trigger a reconnect I believe.
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.
I'm not 100% sure on that, the ESP8266 itself may auto-reconnect if the AP goes down - however there is a
disconnected
event onwifi
that you can hook onto in order to manually trigger a reconnect I believe.