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

the inbuilt mercurius graphiql web client drops the subscription after the first event #1116

Open
adrtivv opened this issue Oct 1, 2024 · 1 comment

Comments

@adrtivv
Copy link
Contributor

adrtivv commented Oct 1, 2024

Here's the codesandbox link: https://codesandbox.io/p/devbox/elastic-wind-jj3wrd

Don't forget to click the Open Preview button:
1

Steps to follow:

  1. Open the /graphiql route relative to whatever url is assigned to your running fastify server in the codesandbox.
  2. Open the mutation and subscription operations in seperate browser tabs making sure both are in screen focus(limitation of graphiql web client where it drops the subscriptions when the subscription tab is not in focus)
  3. Execute the subscription operation.
  4. Execute the mutation operation.
  5. Notice the subscription operation, it has been disconnected after the very first mutation event was emitted.

The subscription works normally when tested with altair chrome extension: https://chromewebstore.google.com/detail/altair-graphql-client/flnheeellpciglgpaodhkhmapeljopja?pli=1

@adrtivv adrtivv changed the title the inbuilt mercurius graphiql web ide drops the subscription after the first event the inbuilt mercurius graphiql web client drops the subscription after the first event Oct 1, 2024
@mcollina
Copy link
Collaborator

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

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

No branches or pull requests

2 participants