-
Notifications
You must be signed in to change notification settings - Fork 317
GraphQlTester support for WebSocket #163
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
Comments
The testing codes is working as expected against WebGraphQlTester with WebGraphQLHandler, I think here it does not use the real protocol. |
It also does not work in an Integratoin tests running on a real HTTP server, check the integration tests. |
GraphQlTester does not support WebSocket, so at the moment, the only option to test subscriptions is to create the tester it with a WebGraphQlHandler, i.e. no running server. |
We're going to provide more testing infrastructure for testing with |
Hope this done in the |
@hantsy not sure why you closed this, but we do need to add WebSocket transport support for |
This is available now as of M6 and was done as part of #317. |
I enabled the WebSocket transport in a WebFlux Spring Graphql example, the complete source codes is here.
spring.graphql.websocket.path=/ws/graphql
I have written a test to verify the subscription like this.
I got an 404 error , /graphql url not found. The test tried to connect to HTTP not Web Socket endpoint.
In the standalone console output, found the following info:
The text was updated successfully, but these errors were encountered: