Repository navigation
docs(webrtc): STUN listener vs /sdp harness, and v1/v2 dial guidance - #1513
Merged
acul71 merged 2 commits intoSep 9, 2026
Merged
Conversation
Separate the two WebRTC-Direct signalling paths — the spec STUN listener (default, the only interoperable path) vs the dev-only POST /sdp harness — and add v1-vs-v2 dial guidance: v1 as the migration default while specs#715 is unmerged, v2 recommended and required for browser dialling once NoSdpMangleUfrag is widespread. Package docstring + README. Closes libp2p#1511
28 of 32 tasks
acul71
approved these changes
Sep 9, 2026
acul71
left a comment
Collaborator
There was a problem hiding this comment.
Review
Docs-only follow-up for #1511 / the #1437 track — LGTM.
- Clearly separates the spec STUN listener (interop default) from the experimental
POST /sdpharness. - v1 migration default vs recommended v2 (specs#715 / browser dial once
NoSdpMangleUfragis widespread) matches the transport behaviour. newsfragments/1511.docs.rstis present and correctly typed; branch is merge-clean and CI is green.
Optional polish (non-blocking): avoid nesting POST /sdp inside bold in the package docstring so Sphinx doesn’t render literal backticks, and keep webrtc_direct_dial_version=1|2 on one line.
Approve — squash-merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@acul71 Closes #1511. Part of the #1437 track (acul71's docs follow-up).
WebRTC-Direct had no user-facing guidance on two easy-to-confuse choices. This clarifies both, in the
libp2p.transport.webrtcpackage docstring and the README:POST /sdpharness (enable_sdp_http_harness, py↔py debugging only, not interoperable — leave off in production).webrtc_direct_dial_version. v1 is the migration default while specs#715 is unmerged; v2 is recommended (no SDP munging) and is what browser dialling needs onceNoSdpMangleUfragis widespread. Default flips to v2 once specs#715 lands.Docs-only — no code change. Package still imports; ruff clean on the touched module.