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

fix(sse): sse()-id not propagated #5819

Merged
merged 14 commits into from
Jun 22, 2024
Merged

fix(sse): sse()-id not propagated #5819

merged 14 commits into from
Jun 22, 2024

Conversation

KATT
Copy link
Member

@KATT KATT commented Jun 22, 2024

I caused a bug where id in sse({}) wasn't propagated. Fixed it and added tests that the right thing is actually propagated

@KATT KATT requested review from a team as code owners June 22, 2024 17:39
Copy link

railway-app bot commented Jun 22, 2024

🚅 Previously deployed to Railway in the trpc-sse-and-websockets project. Environment has been deleted.

Copy link

vercel bot commented Jun 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-prisma-starter ✅ Ready (Inspect) Visit Preview Jun 22, 2024 6:17pm
og-image ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 6:17pm
www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 6:17pm

trpc-bot
trpc-bot previously approved these changes Jun 22, 2024
@@ -200,6 +200,11 @@ test('disconnect and reconnect with an event id', async () => {
expect(onData.mock.calls.length).toBeGreaterThan(5);
});

expect(onData.mock.calls[0]![0]).toEqual({
data: 0,
id: '0',
Copy link
Member Author

Choose a reason for hiding this comment

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

this was missing

@KATT KATT merged commit bce4f97 into next Jun 22, 2024
36 checks passed
@KATT KATT deleted the 06-22-sse-chat branch June 22, 2024 18:21
Copy link

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants