-
Notifications
You must be signed in to change notification settings - Fork 211
streaming callable API: client aborted stream -> how to know on server? #1684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
I found a few problems with this issue:
|
Hi @Obiwarn, Thanks for reporting this issue! We’ve received it and are reviewing it. We’ll provide updates as soon as possible. |
After attempting this for myself, I'm not sure this is possible, however, I will raise internally to confirm. For now, I will leave a feature-request label. |
Duplicate: #1684 |
@taeold your duplicate link refers to this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am testing the new streaming API for cloud functions in emulator.
Aborting streams with an AbortController on my client works fine.
How can the called function know that the user canceled the stream? The CallableResponse signal does not fire an event.
I want to pass an abort signal to the AI API I am calling in the function.
Related issues
[REQUIRED] Version info
node:
firebase-functions:
firebase-tools:
firebase-admin:
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
[REQUIRED] Expected behavior
[REQUIRED] Actual behavior
Were you able to successfully deploy your functions?
The text was updated successfully, but these errors were encountered: