Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion regarding multiple xframes and request.response #28

Open
eshtadc opened this issue Apr 26, 2016 · 0 comments
Open

Confusion regarding multiple xframes and request.response #28

eshtadc opened this issue Apr 26, 2016 · 0 comments

Comments

@eshtadc
Copy link

eshtadc commented Apr 26, 2016

Hi there - I'm doing some proof of concept work with postal.js, postal.xframe, and postal.request-response. Overall this is amazing stuff and I really love how well structured it is. I'm running into a bit of a mental road-block figuring out how to handle multiple frames responding to the same request. It seems like a Promise.all() type of functionality needs to be used and probably could be in my implementation but I'd love any guidance as to where (pseudo-codeish or conceptually).

For example:
index.html sends a request on channel A
iframe1 and iframe2 are both listening for requests on channel A.
I want index.html to respond when all iframes have responded rather than when the first response is returned.

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

No branches or pull requests

1 participant