Skip to content

Encore.ts Streaming Example not working as expected #162

Open
@7iomka

Description

@7iomka

Encore.ts Streaming Examples

stream-in page example
Streaming state never change into success

    // Use stream.response() to get the final message from the server before the stream has closed
    const endMessage = await stream.response();
    addState(endMessage.success ? "Success" : "Error");

stream.response never done, so code after it never runs.
How to deal with that?
Is it bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions