()
| 438 | } |
| 439 | |
| 440 | async sendUpgradeRequest() { |
| 441 | const response = await this.httpGet(null, '/json/list'); |
| 442 | const devtoolsUrl = response[0].webSocketDebuggerUrl; |
| 443 | const port = await this.portPromise; |
| 444 | return http.get({ |
| 445 | port, |
| 446 | family: 4, |
| 447 | path: new URL(devtoolsUrl).pathname, |
| 448 | headers: { |
| 449 | 'Connection': 'Upgrade', |
| 450 | 'Upgrade': 'websocket', |
| 451 | 'Sec-WebSocket-Version': 13, |
| 452 | 'Sec-WebSocket-Key': 'key==', |
| 453 | }, |
| 454 | }); |
| 455 | } |
| 456 | |
| 457 | async connectInspectorSession() { |
| 458 | this._logger.log('[test]', 'Connecting to a child Node process'); |
no test coverage detected