Skip to content

Encore.ts Streaming Example not working as expected #162

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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