You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's not a question, it's a lack of feature which is necessary so please don't close this issue without any reply
I use graphql-ws to subscribe to GraphQL events. I use Observable interface to listen to the events. using error callback we can detect that subscription is failed to start, But there is no way to detect that it's successfully started
next happens when we get an event, But I would like to wrap the Observable with a Promise and await for it to start subscription
And while the promise is not resolved, I want to show a progress bar. I can reject the promise in the error but I couldn't find anyway to resolve it when server returns response to the subscription request
This looks like a protocol issue, and there appears to be a workaround available at the linked issue/discussion. Closing for now, feel free to reopen if if there is something to be addressed within this repository.
I think it's not a question, it's a lack of feature which is necessary so please don't close this issue without any reply
I use
graphql-ws
to subscribe to GraphQL events. I use Observable interface to listen to the events. using error callback we can detect that subscription is failed to start, But there is no way to detect that it's successfully startednext
happens when we get an event, But I would like to wrap theObservable
with a Promise andawait
for it to start subscriptionAnd while the promise is not resolved, I want to show a progress bar. I can reject the promise in the error but I couldn't find anyway to resolve it when server returns response to the subscription request
I have also asked this question at
https://stackoverflow.com/questions/77666947/apollo-graphql-detect-subscription-started
and
enisdenjo/graphql-ws#526
The text was updated successfully, but these errors were encountered: