Skip to content

Event Streams#129

Open
skonves wants to merge 13 commits intomainfrom
event-stream
Open

Event Streams#129
skonves wants to merge 13 commits intomainfrom
event-stream

Conversation

@skonves
Copy link
Member

@skonves skonves commented Nov 1, 2025

No description provided.

}
closeHandler();
} catch (err) {
closeHandler();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to consider moving closeHandler() to the finally block. Not sure it has to precede the call to next().

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it to the finally block. We would have to test it out with a real world example


const stream = await service.streamWidgets(params);
for await (const event of stream) {
res.write(event);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we expect the service.streamWidgets(params); to handle returning the events formatted correctly for no validation?

@istvanfedak istvanfedak force-pushed the event-stream branch 2 times, most recently from f377d75 to d3f9ba9 Compare November 2, 2025 21:56
@skonves
Copy link
Member Author

skonves commented Nov 3, 2025

These changes look great! I'll publish typescript and express as an alpha. We can get some mileage on those and then release an rc/latest when we're ready.

skonves and others added 5 commits November 3, 2025 09:03
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants