Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 447 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 447 Bytes

papercup

A reliable communication channel over UDP.

Usage

const PaperCup = require("papercup");
const receiver = new PaperCup();

receiver.on("message", msg => {
	console.log(msg);
});

receiver.bind(5000);
const PaperCup = require("papercup");
const sender = new PaperCup();

sender.message("hi there!", { port: 5000 }, () => {
	console.log("data has been sent and received by the recipient!");
});