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

Method receiveMessage

deps/v8/test/debugger/test-api.js:250–260  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

248 }
249
250 receiveMessage(message) {
251 const parsedMessage = JSON.parse(message);
252 if (printProtocolMessages) {
253 print(JSON.stringify(parsedMessage, undefined, 1));
254 }
255 if (parsedMessage.id !== undefined) {
256 this.receivedMessages.set(parsedMessage.id, parsedMessage);
257 }
258
259 this.dispatchMessage(parsedMessage);
260 }
261
262 sendMessage(message) {
263 if (printProtocolMessages) print(message);

Callers 1

receiveFunction · 0.80

Calls 4

dispatchMessageMethod · 0.95
parseMethod · 0.65
printFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected