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

Need a way to return a response right after when there's a new subscription request. #723

Closed
rkdrnf opened this issue Oct 13, 2020 · 1 comment
Labels
Community 👨‍👧 Something initiated by a community Out of scope ✖️ Proposal doesn't fit in project goals

Comments

@rkdrnf
Copy link

rkdrnf commented Oct 13, 2020

I'm using the Subscription feature to track the progress of a task.
But sometimes when the task is completed while a client is sending a request to subscribe progress, it can't receive any events from the server because on the server, the task is already completed and there would be no events anymore. Therefore, the client just stays on the incomplete state without knowing that the task is already completed.

Describe the solution you'd like
If the server can send an immediate response to the client right after receiving a subscription request, it would be able to send a response that the task is already completed.

@MichalLytek
Copy link
Owner

Please open a feature request in graphql-subscriptions repo:
https://github.com/apollographql/graphql-subscriptions

TypeGraphQL is only a wrapper around that and graphql-js so it's limited to their capabilities.

@MichalLytek MichalLytek added Community 👨‍👧 Something initiated by a community Out of scope ✖️ Proposal doesn't fit in project goals labels Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community 👨‍👧 Something initiated by a community Out of scope ✖️ Proposal doesn't fit in project goals
Projects
None yet
Development

No branches or pull requests

2 participants