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

Method getImport

src/rpc.ts:636–642  ·  view source on GitHub ↗
(hook: StubHook)

Source from the content-addressed store, hash-verified

634 }
635
636 getImport(hook: StubHook): ImportId | undefined {
637 if (hook instanceof RpcImportHook && hook.entry && hook.entry.session === this) {
638 return hook.entry.importId;
639 } else {
640 return undefined;
641 }
642 }
643
644 importStub(idx: ImportId): RpcImportHook {
645 if (this.abortReason) throw this.abortReason;

Callers 2

resolveMethod · 0.95
sendMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected