Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 372 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 372 Bytes

rudp

Reliable UDP implementation for Node.js.

Example

For a peer-to-peer application, you can write a script like this:

var rudp = require('rudp');
var dgram = require('dgram');

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

socket.bind(localPort);

var client = new rudp.Client(socket, remoteAddress, remotePort);

// And do whatever you want here