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

Add a way to configure the GraphiQL subscription endpoint #31

Open
Jannis opened this issue Dec 4, 2017 · 1 comment
Open

Add a way to configure the GraphiQL subscription endpoint #31

Jannis opened this issue Dec 4, 2017 · 1 comment

Comments

@Jannis
Copy link

Jannis commented Dec 4, 2017

The current GraphiQL interface served by the handler sends GraphQL subscriptions over HTTP, which is not expected to work. This article describes how GraphiQL can be set up with a custom fetcher that does subscriptions over a GraphQL WebSocket.

It would be great if the handler would support this to work with GraphQL servers that implement WS subscriptions.

@kivutar
Copy link

kivutar commented Jan 2, 2018

This is an example implementation from apollo-server: https://github.com/apollographql/apollo-server/blob/5d15abc681ffc43c2ce1d68d728814b8dbcf91b8/packages/apollo-server-module-graphiql/src/renderGraphiQL.ts

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