Skip to content

feat(web): add message channel transport#377

Open
westeezy wants to merge 1 commit into
mainfrom
web-message-transport
Open

feat(web): add message channel transport#377
westeezy wants to merge 1 commit into
mainfrom
web-message-transport

Conversation

@westeezy

Copy link
Copy Markdown
Contributor

What changes are you making?

Add a transport attribute for choosing the ECP message transport. The default keeps protocol traffic on window.postMessage, while message-channel responds to ec.ready with a transferred MessagePort and routes later protocol messages through that port.

Also pin protocol messages to the active checkout origin and share response helpers across window and port transports.

How to test

Sample app is updated to test


Before you merge

Important

  • I've added tests to support my implementation
  • I have read and agree with the Contribution Guidelines
  • I have read and agree with the Code of Conduct
  • I've updated the relevant platform README (platforms/swift/README.md and/or platforms/android/README.md)

@westeezy westeezy requested a review from a team as a code owner June 29, 2026 23:34
@github-actions github-actions Bot added the #gsd:50662 Rebase Checkout Kit on UCP label Jun 29, 2026
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

Web — Coverage Report

Lines Statements Branches Functions
Coverage: 96%
95.15% (314/330) 85.92% (177/206) 98.57% (69/70)

@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

Package Size

Platform Artifact Base Head Delta
Web npm tarball 55.9 KiB 60.0 KiB +4.1 KiB

Measured from the PR base SHA and PR head SHA. This comment reports package artifact sizes only; it is not a final app binary-size report.

Add a transport attribute/property for choosing the ECP message transport. The default keeps protocol traffic on window.postMessage, while message-channel responds to ec.ready with a transferred MessagePort and routes later protocol messages through that port.

Also pin protocol messages to the active checkout origin and share response helpers across window and port transports.

Assisted-By: devx/55b7b083-8752-4d97-9ad6-b7557d543348
@westeezy westeezy force-pushed the web-message-transport branch from e0ea47e to 3843b5e Compare June 29, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant