Skip to content

Fix links to Boot "Web Endpoints" section and mention WebSocket endpoint not enabled by default #436

@dsarlo-viso

Description

@dsarlo-viso

I'm currently trying to set up a basic graphql project using Spring-Graphql. When starting the project, I first set it up using the com.graphql-java-kickstart graphql-spring-boot-starter and spring boots websocket starter and had everything working. When attempting to listen on ws://localhost:8080/subscriptions it would connect and start listening and would pull data. I then found this project and wanted to switch. I changed everything over, my queries work great, but now, when I try to connect to ws://localhost:8080/subscriptions to listen for subscriptions, I get the following error in the graphql playground.

{
  "error": "Could not connect to websocket endpoint ws://localhost:8080/subscriptions. Please check if the endpoint url is correct."
}

Seems as though the websocket component is not being stood up by the starter provided.

Note: I have the following property set in my config - spring.graphql.websocket.path=/subscriptions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions