Skip to content

Commit 64bff82

Browse files
committed
Add log in case the client does not support streaming
1 parent d84cbc9 commit 64bff82

File tree

1 file changed

+5
-0
lines changed
  • firebase-functions/src/androidTest/backend/functions

1 file changed

+5
-0
lines changed

firebase-functions/src/androidTest/backend/functions/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ exports.genStream = functionsV2.https.onCall(async (request, response) => {
154154
response.sendChunk(chunk);
155155
}
156156
}
157+
else {
158+
console.log("CLIENT DOES NOT SUPPORT STEAMING");
159+
}
157160
return streamData.join(' ');
158161
});
159162

@@ -225,6 +228,8 @@ exports.genStreamLargeData = functionsV2.https.onCall(
225228
response.sendChunk(chunk);
226229
await sleep(100);
227230
}
231+
} else {
232+
console.log("CLIENT DOES NOT SUPPORT STEAMING")
228233
}
229234
return "Stream Completed";
230235
}

0 commit comments

Comments
 (0)