I am Hack Sparrow
Captain of the Internets.

Node.js UDP Server and Client Example

Here is a quick tutorial on setting up a UDP server and client in Node.js. For all things UDP in Node.js, you will need to use the dgram library, so read it up well and good. Here is a simple example of a UDP server. [code] var PORT = 33333; var HOST = '127.0.0.1'; var dgram = require('dgram'); var server = dgram.createSocket('udp4'); server.on('listening', function () { var address = server.addre ...