MCPcopy Create free account
hub / github.com/middleapi/orpc / write

Function write

packages/standard-server-aws-lambda/src/response.test.ts:32–35  ·  view source on GitHub ↗
(chunk, encoding, callback)

Source from the content-addressed store, hash-verified

30 const chunks: any[] = []
31 const responseStream = new Stream.Writable({
32 write(chunk, encoding, callback) {
33 chunks.push(chunk)
34 callback()
35 },
36 })
37
38 await sendStandardResponse(responseStream, res, { eventIteratorKeepAliveComment: 'test' })

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected