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

Function sendHelper

lib/internal/cluster/utils.js:16–29  ·  view source on GitHub ↗
(proc, message, handle, cb)

Source from the content-addressed store, hash-verified

14let seq = 0;
15
16function sendHelper(proc, message, handle, cb) {
17 if (!proc.connected)
18 return false;
19
20 // Mark message as internal. See INTERNAL_PREFIX
21 // in lib/internal/child_process.js
22 message = { cmd: 'NODE_CLUSTER', ...message, seq };
23
24 if (typeof cb === 'function')
25 callbacks.set(seq, cb);
26
27 seq += 1;
28 return proc.send(message, handle);
29}
30
31// Returns an internalMessage listener that hands off normal messages
32// to the callback but intercepts and redirects ACK messages.

Callers 3

sendFunction · 0.85
sendFunction · 0.85

Calls 2

sendMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…