Skip to content

generateStream chunks on front end from Firebase functions  #1599

Open
@handihow

Description

@handihow

Is your report related to a problem? Please describe.
Not clear how to consume the stream content in the front end application (Angular + Angular Material)

Is your report related to a suggestion/improvement? Please describe.
My app is built completely in the Google ecosystem using Firebase on the backend en Angular with AM on the front end. I would like to send the flows to Firebase functions and be able to also receive chunks on the front end. However, it is not clear how to do that. Currently I am writing updates to the Firebase Firestore database and keep a subscription to changes on the front end. This works fine, but only if I don't update on too many chunks. However this leads to additional reads and writes that seem unnecessary. Ideally I would like to receive chunks from the flow and then only save the final result.

Additional context
Add any other context or screenshots about the request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentation

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions