NodeJS proxy
Latest commit e34e455 Mar 18, 2013 @alexstrat [README] up 2
Failed to load latest commit information.
example Update example to include a multiple client Mar 17, 2013
lib Allow multiple socket on one browser client Mar 17, 2013
.gitignore Initial commit May 23, 2012
Makefile Add a build config Mar 17, 2013 [README] up 2 Mar 17, 2013
SimUDP.js build Mar 17, 2013
package.json bump version Mar 17, 2013

Simudp : udp for the browser.

Imitates exactly the dgram API in the browser and backed by proxy.


$ npm install simudp

Runs the proxy server :

var server = require('http').createServer();



In the browser

<!-- you need to serve SimUDP.js by your own -->
<script src="/SimUDP.js"></script>

var socket = SimUDP.createSocket('udp4');

var hello = new SimUDP.Buffer('hello');

socket.send(hello, 0, hello.length, 3000, '');

socket.on('message', function(buf, rinfo) {

//you've understood, it's dgram for the browser...


Read the sources (client and proxy) or ask around.

Browserify support

Simudp is fully compatible with browserfy. Best way is to use directly dgram-browserify.