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

feat: Use complete channel for callbacks #509

Closed
wants to merge 4 commits into from

Conversation

bakjos
Copy link

@bakjos bakjos commented Mar 1, 2023

The GraphQL SSE spec includes a complete event when the stream finishes, the current implementation keeps running even when the event is received.

This PR adds support for receiving a callback when the complete event is received. I changed the API to include a channel to receive the complete event, wasn't sure if it was the right way or if we should add another method to the interfaces including the channel

@jensneuse
Copy link
Member

The GraphQL SSE spec includes a complete event when the stream finishes, the current implementation keeps running even when the event is received.

This PR adds support for receiving a callback when the complete event is received. I changed the API to include a channel to receive the complete event, wasn't sure if it was the right way or if we should add another method to the interfaces including the channel

Can you point me to the specification of the "complete" event? I'm not able to find it. Thanks.

@bakjos
Copy link
Author

bakjos commented Mar 20, 2023

@jensneuse Sure, here's the link and it also applies to WebSockets, but I did not implement the web socket version on this PR

@bakjos bakjos force-pushed the bakjos/complete_calback branch 2 times, most recently from de7003a to dc80051 Compare July 2, 2023 13:25
@bakjos bakjos force-pushed the bakjos/complete_calback branch 3 times, most recently from 9a64e48 to 5b5d4a4 Compare August 15, 2023 19:04
@StarpTech
Copy link
Collaborator

Closing due to inactivity.

@StarpTech StarpTech closed this Jan 15, 2024
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.

None yet

3 participants