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

core(driver): add driver.wsEndpoint() #3864

Merged
merged 3 commits into from
Nov 21, 2017
Merged

core(driver): add driver.wsEndpoint() #3864

merged 3 commits into from
Nov 21, 2017

Conversation

paulirish
Copy link
Member

for assistance when working with puppeteer

ref #3837

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -30,6 +30,15 @@ class Connection {
return Promise.reject(new Error('Not implemented'));
}


/**
* @return {!Promise}
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we still say !Promise<string> here just it'll always be rejected?

@@ -104,6 +104,10 @@ class Driver {
return this._connection.disconnect();
}

wsEndpoint() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

copy/paste jsdoc or hopefully tsc smart enough?

Copy link
Member

Choose a reason for hiding this comment

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

add docs for which endpoint this is? And I can't imagine who would think otherwise, but probably worth noting that it's CRI-only

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

LGTM % periods

@@ -104,6 +104,15 @@ class Driver {
return this._connection.disconnect();
}

/**
* Get the browser WebSocket endpoint for devtools protocol clients like Puppeteer
Copy link
Member

Choose a reason for hiding this comment

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

maybe add some punctuation :P

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.

3 participants