Skip to content

Commit

Permalink
feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Nov 21, 2017
1 parent 4a94927 commit 15a56c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lighthouse-core/gather/connections/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Connection {


/**
* @return {!Promise}
* @return {!Promise<string>}
*/
wsEndpoint() {
return Promise.reject(new Error('Not implemented'));
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/gather/connections/cri.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class CriConnection extends Connection {
* @return {!Promise<string>}
*/
wsEndpoint() {
return this._runJsonCommand('version').then(response => response.webSocketDebuggerUrl)
return this._runJsonCommand('version').then(response => response.webSocketDebuggerUrl);
}


Expand Down
5 changes: 5 additions & 0 deletions lighthouse-core/gather/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ class Driver {
return this._connection.disconnect();
}

/**
* Get the browser WebSocket endpoint for devtools protocol clients like Puppeteer
* Only works with WebSocket connection, not extension or devtools
* @return {!Promise<string>}
*/
wsEndpoint() {
return this._connection.wsEndpoint();
}
Expand Down

0 comments on commit 15a56c4

Please sign in to comment.