Skip to content

docs: webrtc-direct-v2#715

Open
dozyio wants to merge 5 commits into
libp2p:masterfrom
dozyio:docs-webrtc-direct-v2
Open

docs: webrtc-direct-v2#715
dozyio wants to merge 5 commits into
libp2p:masterfrom
dozyio:docs-webrtc-direct-v2

Conversation

@dozyio

@dozyio dozyio commented Apr 23, 2026

Copy link
Copy Markdown
  • Adds webrtc-direct-v2 spec

@dozyio

dozyio commented Apr 25, 2026

Copy link
Copy Markdown
Author

Draft JS implementation libp2p/js-libp2p#3480

murat-dogan pushed a commit to murat-dogan/node-datachannel that referenced this pull request Apr 26, 2026
Passes through `rtc::IceUdpMuxRequest::localUfrag` from libdatachannel to
the JS `onUnhandledStunRequest` callback. Needed by the libp2p
WebRTC-Direct v2 transport design (libp2p/specs#715).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Comment thread webrtc/webrtc-direct.md
Comment on lines +189 to +190
6. _B_ sets this inferred offer as remote description, generates an answer, and
sets it as local description.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

B's answer ice-ufrag/ice-pwd aren't specified here, but must be libp2p+webrtc+v2/<client_pwd> (the password A set for B in the synthetic answer) — otherwise the connection fails.

Comment thread webrtc/webrtc-direct.md
Comment on lines +178 to +180
4. _A_ starts sending STUN connectivity checks. _B_ parses STUN `USERNAME` as
`server_ufrag:client_ufrag` and validates that `server_ufrag` has the prefix
`libp2p+webrtc+v2/`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1 has no equivalent prefix check, so a v1 server's handling of a v2/ ufrag is undefined. Each version should validate its prefix and drop on mismatch.

@tabcat

tabcat commented Jun 1, 2026

Copy link
Copy Markdown
Member

@MarcoPolo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants