Skip to content

feat: add asynchronous sendAsync to RTCDataChannel - #246

Merged
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:feature/send-async
Aug 11, 2026
Merged

feat: add asynchronous sendAsync to RTCDataChannel#246
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:feature/send-async

Conversation

@SendableMetatype

Copy link
Copy Markdown
Contributor

send marshals to the signaling thread and blocks the caller until the engine has taken the payload, so applications pushing high message rates over many channels pay a synchronous round trip per message.

sendAsync forwards to the engine's asynchronous send path. The payload window (position to limit) is copied on the native side before the call returns, so the Java buffer can be reused immediately. Errors are reported asynchronously: queueing failures are logged natively, and fatal errors close the data channel, which the registered RTCDataChannelObserver sees as a state change. Existing send is unchanged.

@devopvoid
devopvoid merged commit f531fa6 into devopvoid:main Aug 11, 2026
7 checks passed
@SendableMetatype
SendableMetatype deleted the feature/send-async branch August 12, 2026 15:33
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