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

Websockets with GraphQL Playground #15

Closed
cmdavinder opened this issue Nov 29, 2018 · 1 comment
Closed

Websockets with GraphQL Playground #15

cmdavinder opened this issue Nov 29, 2018 · 1 comment

Comments

@cmdavinder
Copy link

cmdavinder commented Nov 29, 2018

I am using 0.0.2 version. If I enable websocket support via graphql.spqr.ws.enabled=true then websockets doesn't work with GraphQL Playground. It appears that SockJsHttpRequestHandler is being used by the app instead of PerConnectionWebSocketHandler. See below line from application startup logs -

Mapped URL path [/graphql/**] onto handler of type [class org.springframework.web.socket.sockjs.support.SockJsHttpRequestHandler]

Can anyone help with this? I have been using SPQR to build an app from last 3 months but because of Websocket support issues my development work is not crippled. :( I don't want to write a separate NodeJs app with Apollo server.

@kaqqao
Copy link
Member

kaqqao commented Dec 7, 2018

In 0.0.2 Apollo's graphql-ws protocol (expected by Playground) is not supported, but it has been added to 0.0.3 #13 (will be released later today).

@kaqqao kaqqao closed this as completed Dec 7, 2018
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