MCPcopy Create free account
hub / github.com/cloudflare/computer / constructor

Method constructor

packages/rpc/src/server.ts:90–97  ·  view source on GitHub ↗
(
    private readonly db: Database,
    private readonly options: Required<Pick<ServerOptions, "ignore">> &
      Pick<ServerOptions, "afterApply" | "beforeFetch">,
  )

Source from the content-addressed store, hash-verified

88
89class SyncRPCServer extends RpcTarget implements SyncRPC {
90 constructor(
91 private readonly db: Database,
92 private readonly options: Required<Pick<ServerOptions, "ignore">> &
93 Pick<ServerOptions, "afterApply" | "beforeFetch">,
94 ) {
95 super();
96 trackStub(this);
97 }
98
99 [Symbol.dispose](): void {
100 untrackStub(this);

Callers

nothing calls this directly

Calls 1

trackStubFunction · 0.85

Tested by

no test coverage detected