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

Missing timeout on function #76

Open
barnesicle opened this issue Mar 12, 2019 · 5 comments
Open

Missing timeout on function #76

barnesicle opened this issue Mar 12, 2019 · 5 comments

Comments

@barnesicle
Copy link

There is no documentation on how to set a timeout with the on function. I was looking through the code and can not seem to find it. I think there was before. It looks like this with removed with the removal of the global config in one of the later versions. I get "No ack for postMessage myEventName in http://localhost:8080 in 2000ms".

Please let me know if there is a way to set this timeout value.

Thanks.

@bluepnume
Copy link
Collaborator

If you're getting this error, it probably means that post-robot is not loaded in the other window. The ack should be sent immediately; if it takes longer that 2000ms that means something is probably very wrong.

@barnesicle
Copy link
Author

This was configurable before though wasn't it? I can get it by using chromes network limiter with slow 3G selected.

@mangatinanda
Copy link

I am facing this issue too. Please let us know if there is a way to set this value higher than 2000ms. @bluepnume

@barnesicle
Copy link
Author

We ended up writing a recursive function that kept retrying n amount of times.

@mangatinanda
Copy link

Aww... that is not an ideal solution for us. We are rendering an iframe in a huge ember app already. @bluepnume please let us know if there is a way to set higher timeout value. This issue is happening sporadically in our case.

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

3 participants