MCPcopy
hub / github.com/nowork-studio/NotFair / start

Function start

notfair-cmo/src/components/live-transcript.test.tsx:514–522  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

512 const encoder = new TextEncoder();
513 const stream = new ReadableStream({
514 start(controller) {
515 controller.enqueue(
516 encoder.encode("event: text\ndata: {\"chunk\":\"Hello \"}\n\n"),
517 );
518 controller.enqueue(
519 encoder.encode("event: text\ndata: {\"chunk\":\"world\"}\n\n"),
520 );
521 controller.close();
522 },
523 });
524
525 setFetch(async (url) => {

Callers 14

pickFunction · 0.70
goFunction · 0.70
newThreadFunction · 0.70
goFunction · 0.70
submitFunction · 0.70
removeFunction · 0.70
runFunction · 0.70
approveFunction · 0.70
rejectWithFunction · 0.70
alwaysApproveFunction · 0.70
submitFunction · 0.70
newThreadFunction · 0.70

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected