MCPcopy Index your code
hub / github.com/nodejs/node / sendUpgradeRequest

Method sendUpgradeRequest

test/common/inspector-helper.js:440–455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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');

Callers 2

Calls 2

httpGetMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected