I’m writing an app but the xhr.responseText
property isn’t updating as new chunks of text are being added, it only console logs the first word.
Is this an issue with QML/JS?
xhr.onreadystatechange = function () {
if (xhr.readyState === XMLHttpRequest.DONE ||
xhr.readyState === XMLHttpRequest.LOADING) {
console.log("ChatAPI.sendMessage(): Response received");
console.log("ChatAPI.xhr.status: " + xhr.status);
console.log("ChatAPI.xhr.responseText: " + xhr.responseText);