MCPcopy
hub / github.com/CopilotKit/CopilotKit / stop

Method stop

packages/bot-whatsapp/src/webhook-server.ts:34–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 async stop(): Promise<void> {
35 if (!this.server) return;
36 await new Promise<void>((resolve, reject) =>
37 this.server!.close((err) => (err ? reject(err) : resolve())),
38 );
39 this.server = undefined;
40 }
41
42 private handle(req: IncomingMessage, res: ServerResponse): void {
43 const url = new URL(req.url ?? "/", "http://localhost");

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected