.
This commit is contained in:
parent
fc5ec7c37a
commit
a9e8b64fc3
@ -26,10 +26,10 @@ async function readResponse(response) {
|
||||
const decoder = new TextDecoder('utf-8');
|
||||
|
||||
try {
|
||||
let finishedResponse = '';
|
||||
let JSONResponse = new Array();
|
||||
let cleanResponse = new Array();
|
||||
function read() {
|
||||
let finishedResponse = '';
|
||||
let JSONResponse = new Array();
|
||||
let cleanResponse = new Array();
|
||||
// Recursive function to read the stream
|
||||
reader.read().then(( chunk ) => {
|
||||
console.log(`Done: ${JSON.stringify(chunk.done)}`);
|
||||
|
Loading…
Reference in New Issue
Block a user