MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / start

Function start

tests/reasoning.test.tsx:66–70  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

64 '{"kind":"reasoning","delta":"a"}\n{"kind":"content","delta":"html"}\n';
65 const body = new ReadableStream({
66 start(controller) {
67 controller.enqueue(new TextEncoder().encode(payload.slice(0, 24)));
68 controller.enqueue(new TextEncoder().encode(payload.slice(24)));
69 controller.close();
70 },
71 });
72
73 const parts: string[] = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected