Local Peer-to-Peer is a Web platform API proposal for local communication between browsers without the aid of a server.
const conn = await new LP2PRequest(options).start();
const channel = conn.createDataChannel("chat");
channel.onopen = (event) => {
channel.send("Hi you!");
};
For a more in-dept overview of the proposal, please see the Explainer.
This specification is a work in progress.
We welcome feedback via the issue tracker of this GitHub repo. Contributions are welcome via pull requests too.