-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
🚅 Previously deployed to Railway in the trpc-sse-and-websockets project. Environment has been deleted. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was missing
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. |
I caused a bug where
id
insse({})
wasn't propagated. Fixed it and added tests that the right thing is actually propagated