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
- Host: GitHub
- URL: https://github.com/montyanderson/papercup
- Owner: montyanderson
- License: mit
- Created: 2017-04-16T14:57:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T16:03:12.000Z (about 9 years ago)
- Last Synced: 2025-12-25T23:25:07.584Z (6 months ago)
- Topics: communication, network, nodejs, reliability, udp
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!");
});
```