Skip to content

docs: update the client API design and check it in the docs build - #579

Merged
devopvoid merged 2 commits into
mainfrom
docs/client-api-design
Nov 9, 2026
Merged

devopvoid merged 2 commits into
mainfrom
docs/client-api-design

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

The Client API Design page had fallen behind the code. It now covers ICE recovery, peer diagnostics and audio stats, file transfers, and e2ee for WHIP and WHEP. It also drops the rule that device and pushed audio cannot share a runtime.

So that it doesn't drift again, npm run build first runs docs/scripts/check-client-api-design.mjs. The check compares the member names the page lists with the public members of the client API, and fails for public types the page doesn't name. pages.yml now also builds PRs that change only webrtc/src/main/java/dev/onvoid/webrtc/client/**, so an API change without a page update fails before the merge.

…cs and file transfer

Add ICE recovery, peer diagnostics, audio stats, file transfers and e2ee for WHIP and WHEP, and drop the rule that device and pushed audio cannot share a runtime.
…uild

The page's signatures are prose, so they drift unnoticed. The docs build now fails when they no longer match the client API, and pages.yml builds PRs that change only that API.
@devopvoid
devopvoid merged commit e25fde7 into main Nov 9, 2026
10 checks passed
@devopvoid
devopvoid deleted the docs/client-api-design branch November 9, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant