Backend half
This commit is contained in:
Generated
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
export async function splitStream(stream) {
|
||||
if (typeof stream.stream === "function") {
|
||||
stream = stream.stream();
|
||||
}
|
||||
const readableStream = stream;
|
||||
return readableStream.tee();
|
||||
}
|
||||
Reference in New Issue
Block a user