-
Notifications
You must be signed in to change notification settings - Fork 24
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
observer is not defined #30
Comments
Yep @OlegIlyenko broke it with this commit: 6258979 I will submit a PR shortly to fix this. |
The current api we use in the fetcher expects the 0.8.x version of subscription-transport-ws. There are breaking changes in the 0.9.x I have also taken the opportunity to use yarn selective dependency resolution to better address the graphql issue without resorting to edit the yarn.lock file. Fixes OlegIlyenko#30
Just published v1.1.4 Sorry for breaking the deps 😰 Thanks again got fixing it, @tlvenn! |
Thanks Oleg! Updating to |
Hi Oleg,
Looks like the subscriptions are not working in the latest version. GraphiQLSubscriptionsFetcher.js refers to a variable called
observer
, but it is not defined. Getting an exception when trying to subscribe to something.I'm also wondering if sending subscriptions could be disabled when the ws url is not defined. I forgot to define it today and sent a subscription, but this resulted an odd error, because the query was sent to the HTTP server:
Apollo tried resolving a subscription when there's no event, so the payload was undefined.
The text was updated successfully, but these errors were encountered: