By default when the ESP8266 is running STA (station mode), a DNS server is started, so I believe this would also need to be stopped - an option would need to be added
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 some code in progress to add UDP, so in the future yes.
https://github.com/espruino/Espruino/issues/1062
By default when the ESP8266 is running STA (station mode), a DNS server is started, so I believe this would also need to be stopped - an option would need to be added