Decode a ReadableStream<Uint8Array> of length-prefixed JSON frames into a stream of T.
Frame format: [4-byte BE length][UTF-8 JSON payload]
API
export declare function decodeFrames(
stream: ReadableStream < Uint8Array >,
options: DecodeFramesOptions ,
): AsyncGenerator <
Frame ,
void,
unknown
>;decodeFrames
AsyncGenerator<Frame, void, unknown>@paramstream:ReadableStream<Uint8Array>ReadableStream producing Uint8Array chunks
@paramoptions:DecodeFramesOptionsdecoding options
@returnsAsyncGenerator<Frame, void, unknown>