Emulate the node.js dgram api with chrome's new socket api