Eventing on server-side close of stream WITHOUT final msg.event complete #21
brentmjohnson
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Hmm, I am not fully clear on what you're trying to describe. Can you elaborate a bit more or provide an example? All subscription sinks must end with a |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Really enjoying the work folks have put into this - so thank you!
Opening for discussion if we should be considering a server-side initiated close of the event stream without a final "complete" message an error reported back through the graphql-sse client. Currently this scenario leaves a dangling client.subscribe sink since the operation completes without a final next(), error(), or complete() callback to the sink.
If this makes sense, it seems like it could be handled in the finally block here: https://github.com/enisdenjo/graphql-sse/blob/master/src/client.ts#:~:text=Object.values(waiting).forEach((%7B%20proceed%20%7D)%20%3D%3E%20proceed())%3B
Beta Was this translation helpful? Give feedback.
All reactions