Skip to content

fix: report rejected synchronous data channel sends - #278

Merged
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:fix/data-channel-send-rejection
Sep 8, 2026
Merged

fix: report rejected synchronous data channel sends#278
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:fix/data-channel-send-rejection

Conversation

@SendableMetatype

Copy link
Copy Markdown
Contributor

RTCDataChannel.send documents that it throws when the message cannot be queued, but the native Send result was ignored, so a message sent before the channel opened or after it closed was silently dropped. libwebrtc returns false in exactly those cases, and when the send queue overflows. The result is now checked and a rejected send throws, which makes the documented behavior real. Callers that send during teardown and relied on the silent drop will now see the exception.

@devopvoid
devopvoid merged commit 02db332 into devopvoid:main Sep 8, 2026
1 check passed
@SendableMetatype
SendableMetatype deleted the fix/data-channel-send-rejection branch September 8, 2026 12:46
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