It might be good to first validate that the esp8266 UDP implementation will work for the use-case. I haven't tried, but there seem to be issues with flow control. Specifically, if you send packets too fast they never make it out the door...
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.
It might be good to first validate that the esp8266 UDP implementation will work for the use-case. I haven't tried, but there seem to be issues with flow control. Specifically, if you send packets too fast they never make it out the door...