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

Add awaitDebugger() helper to wait for Chrome DevTools to be up #174

Open
joffrey-bion opened this issue Jun 2, 2022 · 0 comments
Open

Comments

@joffrey-bion
Copy link
Owner

In some use cases, the DevTools debugger server might take some time to start, and it is not always obvious how to synchronize with it. The current HTTP client doesn't have any retry and just fails when attempting to connect if it's too early (see #173).

It might be useful for such use cases to have a dedicated function call in the code to wait for the debugger server to be up, such as ChromeDPClient.awaitDebugger().

As mentioned in the related issue (linked above), this can be implemented by using retries. Exposing the Ktor client's retry configuration is a quick win, but ties this project further with Ktor, which might not be desirable. This is to be taken into consideration during design.

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