Skip to content

Native DOM receiver; receiver seam; mount knobs for benchmarking - #6

Merged
lannbot merged 1 commit into
mainfrom
native-receiver
Sep 6, 2026
Merged

Native DOM receiver; receiver seam; mount knobs for benchmarking#6
lannbot merged 1 commit into
mainfrom
native-receiver

Conversation

@lannbot

@lannbot lannbot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

NativeDomReceiver applies frames to the DOM directly: id map plus reverse
WeakMap, createElementNS and setAttributeNS (SVG renders, which the
remote-dom path cannot do), moveBefore for connected moves, template
prototypes cloned with cloneNode, subtree walk on remove. The remote-dom
transcoder stays as the interop receiver behind the same Receiver seam;
the listener registry and template validator are shared. mount() gains
receiver (native default) and transport (direct | chunked) options, an
onChunk recording tap, stats (batches, frames, bytes) and nextCommit().
The e2e runs both demos against both receivers.

NativeDomReceiver applies frames to the DOM directly: id map plus reverse
WeakMap, createElementNS and setAttributeNS (SVG renders, which the
remote-dom path cannot do), moveBefore for connected moves, template
prototypes cloned with cloneNode, subtree walk on remove. The remote-dom
transcoder stays as the interop receiver behind the same Receiver seam;
the listener registry and template validator are shared. mount() gains
receiver (native default) and transport (direct | chunked) options, an
onChunk recording tap, stats (batches, frames, bytes) and nextCommit().
The e2e runs both demos against both receivers.
@lannbot
lannbot merged commit 28c5856 into main Sep 6, 2026
1 check passed
@lannbot
lannbot deleted the native-receiver branch September 6, 2026 15:09
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