An optional callback would need to be added, and the code here modified to call the callback if it exists.
https://github.com/espruino/Espruino/blob/c09739f663d2074619e9fad88dbb684ea1309cda/libs/network/esp8266/jswrap_esp8266_network.c#L1108-L1136
@Wilberforce 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.
An optional callback would need to be added, and the code here modified to call the callback if it exists.
https://github.com/espruino/Espruino/blob/c09739f663d2074619e9fad88dbb684ea1309cda/libs/network/esp8266/jswrap_esp8266_network.c#L1108-L1136