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

Playground subscription #26

Closed
Biromain opened this issue Dec 8, 2017 · 4 comments
Closed

Playground subscription #26

Biromain opened this issue Dec 8, 2017 · 4 comments

Comments

@Biromain
Copy link
Contributor

Biromain commented Dec 8, 2017

Playground subscription seem to search on ws(s) endpoint property

Search in ws(s)://ip:port/graphql KO

const options = {
  disableSubscriptions: false,  // same as default value
  port: 8000,
  endpoint: '/graphql',
  subscriptionsEndpoint: '/subscriptions',
  playgroundEndpoint: '/playground',
  disablePlayground: false      // same as default value
}

Search in ws(s)://ip:port/ OK

const options = {
  disableSubscriptions: false,  // same as default value
  port: 8000,
  endpoint: '/',
  subscriptionsEndpoint: '/',
  playgroundEndpoint: '/',
  disablePlayground: false      // same as default value
}
@kbrandwijk
Copy link
Contributor

@Biromain In development mode, the endpoints are read from your graphql config file. Did you add a subscription endpoint with the right path?

@kbrandwijk
Copy link
Contributor

I have confirmed that this is a playground issue, tracked here: graphql/graphql-playground#462

@Biromain
Copy link
Contributor Author

Biromain commented Jan 7, 2018

Ok thanks. I implemented my own server but thanks to yoga for letting me learn by not having to implement everything at once.

@Urigo
Copy link
Collaborator

Urigo commented Mar 29, 2022

Hey, @Urigo from The Guild here!

You might know us from projects such as graphql-code-generator, envelop or graphql-tools.

For a long time we thought that the Javascript ecosystem is still missing a lightweight cross-platform, but still highly customizable GraphQL Server.

In the past the awesome Prisma team took on that great challenge and now we are happy to announce that we are continuing them and just released GraphQL Yoga 2.0 - Build fast, extensible, and batteries-included (Subscriptions, Serverless, File uploads support) GraphQL APIs in Node.js 🚀

And regarding the issue here, Yoga comes with Subscriptions support out of the box!

We have been working a long time on version 2.0 and have been using it in our clients projects for a few months now and shared a couple of alpha cycles here.
Thank you all for your feedback and suggestions, you made this release possible!

Please try Yoga out again, give us feedback and help us spread the word on the new release!

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

3 participants