MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / forkContextWithScope

Function forkContextWithScope

framework/framework/server.ts:47–57  ·  view source on GitHub ↗
(ctx: CordisContext)

Source from the content-addressed store, hash-verified

45}
46
47async function forkContextWithScope(ctx: CordisContext) {
48 const scope = ctx.plugin(() => { });
49 await scope;
50 const dispose = () => scope.dispose();
51 return {
52 scope,
53 ctx: scope.ctx,
54 dispose,
55 [Symbol.asyncDispose]: dispose,
56 };
57}
58
59export interface HydroRequest {
60 method: string;

Callers 2

handleHttpMethod · 0.85
handleWSMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected