I pushed a Cordova 3.x plugin today to send and receive UDP datagrams. It supports both unicast and multicast addressing. It supports only Android at the moment, I expect to iOS support at some point.
You can find it here. Do
cordova plugin add https://github.com/gramakri/cordova-plugin-datagram
in your cordova project to install the plugin.