const buffer = new UInt8Array(256) const bytesRead = await reader.read(buffer) if (bytesRead === 0) { // Done return }