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

Function sseResponse

test/client/stream.test.ts:31–35  ·  view source on GitHub ↗
(events: Parameters<typeof buildSSE>[0])

Source from the content-addressed store, hash-verified

29}
30
31function sseResponse(events: Parameters<typeof buildSSE>[0]): Response {
32 return new Response(buildSSE(events), {
33 headers: { 'Content-Type': 'text/event-stream' },
34 });
35}
36
37describe('parseSSE', () => {
38 let server: MockServer;

Callers 1

stream.test.tsFile · 0.70

Calls 1

buildSSEFunction · 0.85

Tested by

no test coverage detected