MCPcopy Create free account
hub / github.com/Effect-TS/effect / duplexStream

Function duplexStream

packages/platform/node-shared/benchmark/Socket.ts:110–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108const duplexEcho = (): Duplex => loopbackDuplex((chunk, push) => push(chunk))
109
110const duplexStream = (): Duplex =>
111 loopbackDuplex((_chunk, push) => {
112 for (const frame of streamFrames) push(frame)
113 })
114
115/**
116 * Tracks how many bytes have arrived so a read of `n` bytes resolves once the

Callers 1

Socket.tsFile · 0.85

Calls 2

loopbackDuplexFunction · 0.85
pushFunction · 0.70

Tested by

no test coverage detected