WICG / local-peer-to-peer

↔️ Proposal for local communication between browsers without the aid of a server.
https://wicg.github.io/local-peer-to-peer/
Other
62 stars 6 forks source link

Peer discovery & acceptance: JavaScript vs User Agent #16

Closed backkem closed 7 months ago

backkem commented 9 months ago

In the current explainer, both peerdiscovery and acceptance of incoming connections (peerB.accept();) is handled in JavaScript.

I wanted to highlight the approach that the Presentation API takes here. Instead of handling this in JavaScript, it's the User Agent that takes up this task. This is also similar to how ChromeCast-ing or bluetooth pairing works. This has the following potential advantages:

backkem commented 7 months ago

Considered closed by #23.