anternet.js
Anternet is a framework of libraries based on UDP protocol for peer-to-peer communications.
Libraries
- anternet-channel - Listening to broadcasts form other peers
- anternet-broadcast - Broadcast to other peers that listening on given channel
- shared-vars - Share variables between two or more endpoints
More libraries is on the way..
Example
const Anternet = ; const msgType = 1; // can be any positive numberconst address = '127.0.0.1';const port = 12345; // peer 1const anternet1 = ;anternet1; anternet1; // peer 2const anternet2 = ;anternet2;
License
MIT License. Copyright © 2016 Moshe Simantov