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

feat: add waitForInspectableTarget option (fix #145) #191

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gamtiq
Copy link

@gamtiq gamtiq commented Mar 16, 2020

I've added new option waitForInspectableTarget that allows to wait until target list is available. It should fix #145.

// (optional) Interval in ms, which defines whether and how long an inspectable target should be awaited.
// `0` means that list of inspectable targets will not be requested and awaited.
// Default: 0
waitForInspectableTarget: number;
Copy link
Collaborator

@connorjclark connorjclark Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if this ought to be the default behavior. about to do a major version anyhow, so we can do a breaking change. Will play with this more later.

also, having a timeout be configurable doesn't make much sense to a user (what is a "correct" value?), should probably just internally wait for some reasonable upper limit (10s?) then fail.

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

Successfully merging this pull request may close these issues.

Occasional "No inspectable targets" error when launching chrome with a very short connectionPollInterval
2 participants