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

Function doCall

src/core.ts:329–331  ·  view source on GitHub ↗
(hook: StubHook, path: PropertyPath, params: RpcPayload)

Source from the content-addressed store, hash-verified

327// scope. This is used to implement record/replay
328type CallInterceptor = (hook: StubHook, path: PropertyPath, params: RpcPayload) => StubHook;
329let doCall: CallInterceptor = (hook: StubHook, path: PropertyPath, params: RpcPayload) => {
330 return hook.call(path, params);
331}
332
333export function withCallInterceptor<T>(interceptor: CallInterceptor, callback: () => T): T {
334 let oldValue = doCall;

Callers 1

applyFunction · 0.85

Calls 1

callMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…