Until the docs themselves get published, you could use the test code as a reference: https://github.com/espruino/Espruino/blob/master/tests/test_dgram_socket.js
It's meant to act just like the node.js version so there should be a few examples on the net was well.
@Gordon 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.
Until the docs themselves get published, you could use the test code as a reference: https://github.com/espruino/Espruino/blob/master/tests/test_dgram_socket.js
It's meant to act just like the node.js version so there should be a few examples on the net was well.