MCPcopy
hub / github.com/cloudflare/capnweb / call

Method call

src/rpc.ts:326–333  ·  view source on GitHub ↗
(path: PropertyPath, args: RpcPayload)

Source from the content-addressed store, hash-verified

324 // implements StubHook
325
326 call(path: PropertyPath, args: RpcPayload): StubHook {
327 let entry = this.getEntry();
328 if (entry.resolution) {
329 return entry.resolution.call(path, args);
330 } else {
331 return entry.session.sendCall(entry.importId, path, args);
332 }
333 }
334
335 stream(path: PropertyPath, args: RpcPayload): {promise: Promise<void>, size?: number} {
336 let entry = this.getEntry();

Callers 5

ownFunction · 0.45
copyDisposeDescriptorFunction · 0.45
wrapPrototypeMethodsFunction · 0.45
evaluateImplMethod · 0.45
index.test.tsFile · 0.45

Calls 2

getEntryMethod · 0.95
sendCallMethod · 0.80

Tested by

no test coverage detected