MCPcopy
hub / github.com/nock/nock / start

Function start

lib/create_response.js:27–32  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

25 ? null
26 : new ReadableStream({
27 start(controller) {
28 message.on('data', chunk => controller.enqueue(chunk))
29 message.on('end', () => controller.close())
30 message.on('error', error => controller.error(error))
31 signal.addEventListener('abort', () => message.destroy(signal.reason))
32 },
33 cancel() {
34 message.destroy()
35 },

Callers

nothing calls this directly

Calls 1

onMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…