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

[Question] What is the best way to use "goto" in an application that uses long-polling? #3705

Closed
jonathanheijmans opened this issue Sep 1, 2020 · 1 comment

Comments

@jonathanheijmans
Copy link

We would like to use the "networkidle" option in goto and other functions so that we don't have to add waitfor's for regular api requests. But that does not work with long polling, giving timeouts. So what is best practice for this?

@dgozman
Copy link
Contributor

dgozman commented Oct 2, 2020

Here is a snippet that implements "network settled after action" semantic, that should account for long polling. If you give it a try, any feedback is welcome.

@dgozman dgozman closed this as completed Oct 2, 2020
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

2 participants