dgram module for the browser thru a proxy based on

npm install simudp
8 downloads in the last week
30 downloads in the last month

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 source or ask around.

Browserify support

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

npm loves you