MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / transform

Function transform

inject.js:456–459  ·  view source on GitHub ↗
(chunk, controller)

Source from the content-addressed store, hash-verified

454
455 const createObserverTransform = (stream) => new TransformStream({
456 transform(chunk, controller) {
457 processChunk(chunk, stream);
458 controller.enqueue(chunk);
459 },
460 flush() {
461 closeConnection(stream);
462 }

Callers

nothing calls this directly

Calls 1

processChunkFunction · 0.85

Tested by

no test coverage detected