MCPcopy
hub / github.com/MiniMax-AI/cli / collectEvents

Function collectEvents

test/client/stream.test.ts:287–293  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

285 // -------------------------------------------------------------------------
286
287 async function collectEvents(response: Response): Promise<ServerSentEvent[]> {
288 const events: ServerSentEvent[] = [];
289 for await (const event of parseSSE(response)) {
290 events.push(event);
291 }
292 return events;
293 }
294});

Callers 1

stream.test.tsFile · 0.85

Calls 1

parseSSEFunction · 0.90

Tested by

no test coverage detected