MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / handleRequest

Method handleRequest

src/debug/run_daemon.ts:36–43  ·  view source on GitHub ↗
(method: string, params: any)

Source from the content-addressed store, hash-verified

34 }
35
36 protected async handleRequest(method: string, params: any): Promise<any> {
37 switch (method) {
38 case "app.exposeUrl":
39 return this.urlExposer(params.url as string);
40 default:
41 throw new Error(`Unknown request ${method}`);
42 }
43 }
44
45 // TODO: Can we code-gen all this like the analysis server?
46

Callers 1

processServerRequestFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected