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

Method connectInspectorSession

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

Source from the content-addressed store, hash-verified

455 }
456
457 async connectInspectorSession() {
458 this._logger.log('[test]', 'Connecting to a child Node process');
459 const upgradeRequest = await this.sendUpgradeRequest();
460 return new Promise((resolve) => {
461 upgradeRequest
462 .on('upgrade',
463 (message, socket) => resolve(new InspectorSession(socket, this)))
464 .on('response', common.mustNotCall('Upgrade was not received'));
465 });
466 }
467
468 async expectConnectionDeclined() {
469 this._logger.log('[test]', 'Checking upgrade is not possible');

Callers 15

runTestsFunction · 0.95
runTestsFunction · 0.95
runTestFunction · 0.95
runTestFunction · 0.95
runTestsFunction · 0.95
runTestsFunction · 0.95
runTestFunction · 0.95
runTestFunction · 0.95
runTestsFunction · 0.95
runTestsFunction · 0.95
runTestsFunction · 0.95
runTestsFunction · 0.95

Calls 4

sendUpgradeRequestMethod · 0.95
resolveFunction · 0.70
logMethod · 0.45
onMethod · 0.45

Tested by 2

testFunction · 0.76
testFunction · 0.76