encoredev / examples

Templates for Encore
https://encore.dev/templates
MIT License
179 stars 49 forks source link

Encore.ts Streaming Example not working as expected #162

Open 7iomka opened 1 month ago

7iomka commented 1 month ago

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?