Re: [w3c/webpayments-payment-apps-api] Communication between JS PaymentApps and the User Agent (#26)

> Is there an advantage to using `MessageChannel` with `port1` for receiving messages and `port2` for passing messages back to the user agent? If there is no clear advantage, should we try to align this with the way serviceworkers and other workers are implemented?

I'm okay making the ports implicit by adding [global scope interfaces similar to Dedicated Web Workers](https://www.w3.org/TR/workers/#dedicated-workers-and-the-dedicatedworkerglobalscope-interface). Note that this will only impact the payment apps themselves; the actual posting of messages to the apps and receiving messages from the apps will be done by the payment mediator, not the payment requester.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webpayments-payment-apps-api/issues/26#issuecomment-239901648

Received on Monday, 15 August 2016 19:23:50 UTC