Skip to content

docs: correct data channel buffered amount semantics - #279

Merged
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:docs/data-channel-buffered-amount
Sep 8, 2026
Merged

docs: correct data channel buffered amount semantics#279
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:docs/data-channel-buffered-amount

Conversation

@SendableMetatype

Copy link
Copy Markdown
Contributor

onBufferedAmountChange was documented as reporting the previous buffered amount. libwebrtc passes the number of bytes just removed from the queue, a decrease that may combine several changes and says nothing about delivery to the peer. The parameter name, the javadoc and the guide now say so, and the test sums the reported decreases to the message size instead of waiting for any call.

@devopvoid
devopvoid merged commit afaec78 into devopvoid:main Sep 8, 2026
1 check passed
@SendableMetatype
SendableMetatype deleted the docs/data-channel-buffered-amount branch September 8, 2026 13:36
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.

2 participants