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

Function createObserverTransform

inject.js:455–463  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

453 };
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 }
463 });
464
465 return {
466 processChunk,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected