MCPcopy
hub / github.com/mswjs/msw / start

Function start

test/node/rest-api/response/body-stream.node.test.ts:58–62  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

56 http.get('https://api.example.com/stream', () => {
57 const stream = new ReadableStream({
58 start(controller) {
59 controller.enqueue(encoder.encode('hello'))
60 controller.enqueue(encoder.encode('world'))
61 controller.close()
62 },
63 })
64
65 return new HttpResponse(stream, {

Callers

nothing calls this directly

Calls 2

delayFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…