This commit is contained in:
Skylar Grant 2025-01-04 11:15:42 -05:00
parent fc5ec7c37a
commit a9e8b64fc3

View File

@ -26,10 +26,10 @@ async function readResponse(response) {
const decoder = new TextDecoder('utf-8');
try {
function read() {
let finishedResponse = '';
let JSONResponse = new Array();
let cleanResponse = new Array();
function read() {
// Recursive function to read the stream
reader.read().then(( chunk ) => {
console.log(`Done: ${JSON.stringify(chunk.done)}`);