Detect subscription successfully started

Please read Detect subscription successfully started · enisdenjo/graphql-ws · Discussion #528 · GitHub first

In our application it’s not safe to let user to see the page before subscribing to GraphQL events. I would like to show a progress bar while subscription successfully started. in case of error I can show error message because there is a way to detect errors, but there is no way to detect start of subscription.

I also need to resolve/reject a promise and there is no way to resolve it

I’m just wondering is there workaround for this problem?

Hi @Amerehei,

This is a great question (as usual)! I’ll have to discuss with engineering and get back to you with the best way to handle this use case. I’ll get back to you shortly.

/Kevin

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.