MCPcopy
hub / github.com/coder/mux / createClient

Function createClient

src/node/orpc/router.memory.test.ts:73–78  ·  view source on GitHub ↗
(options: {
    enabled: boolean;
    workspaceInfo?: ReturnType<typeof workspaceInfo>;
  })

Source from the content-addressed store, hash-verified

71 }
72
73 function createClient(options: {
74 enabled: boolean;
75 workspaceInfo?: ReturnType<typeof workspaceInfo>;
76 }) {
77 return createRouterClient(router(), { context: createContext(options) });
78 }
79
80 test("all memory routes reject while the experiment is disabled", async () => {
81 const client = createClient({ enabled: false });

Callers 2

getClientMethod · 0.50

Calls 2

routerFunction · 0.90
createContextFunction · 0.70

Tested by

no test coverage detected