MCPcopy
hub / github.com/ahmedkhaleel2004/gitdiagram / send

Function send

src/app/api/generate/stream/route.ts:202–207  ·  view source on GitHub ↗
(payload: Record<string, unknown>)

Source from the content-addressed store, hash-verified

200 };
201
202 const send = (payload: Record<string, unknown>) => {
203 if (controllerClosed || generationAbortController.signal.aborted) {
204 return;
205 }
206 controller.enqueue(encoder.encode(sseMessage(payload)));
207 };
208
209 const run = async () => {
210 let audit = createGenerationSessionAudit({

Callers 1

runFunction · 0.70

Calls 2

sseMessageFunction · 0.90
enqueueMethod · 0.80

Tested by

no test coverage detected