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

Method send

test/common/inspector-helper.js:217–226  ·  view source on GitHub ↗
(commands)

Source from the content-addressed store, hash-verified

215 }
216
217 send(commands) {
218 if (Array.isArray(commands)) {
219 // Multiple commands means the response does not matter. There might even
220 // never be a response.
221 return Promise
222 .all(commands.map((command) => this._sendMessage(command)))
223 .then(() => {});
224 }
225 return this._sendMessage(commands);
226 }
227
228 waitForNotification(methodOrPredicate, description) {
229 const desc = description || methodOrPredicate;

Callers 1

runToCompletionMethod · 0.95

Calls 4

_sendMessageMethod · 0.95
allMethod · 0.80
mapMethod · 0.65
thenMethod · 0.45

Tested by

no test coverage detected