()
| 308 | } |
| 309 | |
| 310 | async _discoverWebsocketPath() { |
| 311 | const { 0: { webSocketDebuggerUrl } } = await this._fetchJSON('/json'); |
| 312 | const { pathname, search } = new URL(webSocketDebuggerUrl); |
| 313 | return `${pathname}${search}`; |
| 314 | } |
| 315 | |
| 316 | _connectWebsocket(urlPath) { |
| 317 | this.reset(); |