Skip to content
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

Encore.ts Streaming Example not working as expected #162

Open
7iomka opened this issue Oct 28, 2024 · 0 comments
Open

Encore.ts Streaming Example not working as expected #162

7iomka opened this issue Oct 28, 2024 · 0 comments

Comments

@7iomka
Copy link

7iomka commented Oct 28, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant