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

Function receiveMessageOnPort

lib/internal/worker/io.js:342–346  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

340}
341
342function receiveMessageOnPort(port) {
343 const message = receiveMessageOnPort_(port?.[kHandle] ?? port);
344 if (message === noMessageSymbol) return undefined;
345 return { message };
346}
347
348function onMessageEvent(type, data) {
349 this.dispatchEvent(lazyMessageEvent(type, { data }));

Callers 6

receiveMessageSyncMethod · 0.85
makeAsyncRequestMethod · 0.85
checkForMessagesFunction · 0.85
doDrainPortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…