Skip to content

feat(sdk): ArrayBuffer DataChannel support and dual-channel sync#46

Merged
akirilyuk merged 2 commits into
mainfrom
feat/arraybuffer-datachannel
Jun 16, 2026
Merged

feat(sdk): ArrayBuffer DataChannel support and dual-channel sync#46
akirilyuk merged 2 commits into
mainfrom
feat/arraybuffer-datachannel

Conversation

@akirilyuk

Copy link
Copy Markdown
Owner

Summary

  • Bindings: move Bytes into Node Buffer on receive (one copy when uniquely owned)
  • SDK: honor binaryType: 'arraybuffer', pass Buffer through on send, e2e binary round-trip test
  • Helpers: optional voicethere-sync channel, sendBinaryToClient, onDataChannelBinary
  • Examples: game-state-sync shared module, start:binary / start:binary-mesh, browser-cosine-chat canvas sync

Release note (proposed 0.5.4)

Publish @node-webrtc-rust/bindings, sdk, signaling, helpers together first — downstream repos depend on helpers sync channel + native binary path.

Verified locally: run-pr-quality.sh, build:native, build:ts, SDK e2e, start:binary, start:binary-mesh.

akirilyuk and others added 2 commits June 15, 2026 16:37
Optimize native binary receive, honor binaryType in SDK, add voicethere-sync
helpers, binary examples (roundtrip + mesh), and browser-cosine-chat game sync.

Co-authored-by: Cursor <cursoragent@cursor.com>
@akirilyuk akirilyuk merged commit ab008d2 into main Jun 16, 2026
7 checks passed
@akirilyuk akirilyuk deleted the feat/arraybuffer-datachannel branch June 16, 2026 04: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.

1 participant