An open API service indexing awesome lists of open source software.

https://github.com/montyanderson/papercup

A reliable communication channel over UDP
https://github.com/montyanderson/papercup

communication network nodejs reliability udp

Last synced: 2 months ago
JSON representation

A reliable communication channel over UDP

Awesome Lists containing this project

README

          

# papercup
A reliable communication channel over UDP.

## Usage

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

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

receiver.bind(5000);
```

``` javascript
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!");
});
```