-
-
Notifications
You must be signed in to change notification settings - Fork 748
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 event stream formatter so that support graphql-sse protocol #5473
Fix event stream formatter so that support graphql-sse protocol #5473
Conversation
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.
Hey there, thanks for contributing.
Did you check with the graphql-sse protocol specification?
The payloads no longer look to conform with the spec.
One other thing I spotted is that you removed the compiler memory optimizations that we were using.
The protocol spec can be found here: |
src/HotChocolate/Core/src/Execution/Serialization/EventStreamResultFormatter.cs
Show resolved
Hide resolved
src/HotChocolate/Core/src/Execution/Serialization/EventStreamResultFormatter.cs
Show resolved
Hide resolved
OK, read into the link you posted... so I interpreted it wrongly. I will revert the changes you did to static fields so that we do not carry a static array around, but leave your fix in place. |
Ah damnit :) I see why you did what you did :D |
Thank you for your help! |
I have integrated your fix into preview 68 ... should be available in the next 60 minutes: |
Fix
EventStreamResultFormatter
to format an event stream for decoding.