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

API Design: LP2PQuicTransport listener #32

Closed backkem closed 5 months ago

backkem commented 6 months ago

While experimenting a bit with the current LP2PQuicTransport API a couple notes came up.

Since the ontransport EventHandler is on LP2PReceiver, this implies only a LP2P receiver side can currently listen for a QuicTransport. On the other hand, allowing a QuicTransport to be constructed from an existing connection doesn't enforce this limitation.

There's a couple ways I can see to amend this:

backkem commented 5 months ago

Solved by #33.