MCPcopy
hub / github.com/simstudioai/sim / onEnd

Function onEnd

apps/sim/lib/core/utils/stream-limits.ts:203–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201 }
202
203 const onEnd = () => {
204 finish(() => resolve(Buffer.concat(chunks, totalBytes)))
205 }
206
207 const onError = (error: unknown) => {
208 finish(() => reject(error))

Callers

nothing calls this directly

Calls 3

concatMethod · 0.80
finishFunction · 0.70
resolveFunction · 0.50

Tested by

no test coverage detected