MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / send

Method send

telemetry-dashboard/scripts/render-check.mjs:122–128  ·  view source on GitHub ↗
(method, params = {}, sessionId)

Source from the content-addressed store, hash-verified

120 }
121
122 send(method, params = {}, sessionId) {
123 const id = this.nextId++;
124 return new Promise((resolve, reject) => {
125 this.pending.set(id, { resolve, reject });
126 this.socket.send(JSON.stringify(sessionId ? { id, method, params, sessionId } : { id, method, params }));
127 });
128 }
129
130 /** Runs an expression in the page and returns its value, awaiting promises. */
131 async evaluate(sessionId, expression) {

Callers 1

evaluateMethod · 0.95

Calls 2

sendMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected