Skip to content

Subscriptions with WebSockets not working in a WebFlux DGS App? #749

Answered by ghost
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

I will answer myself
Adding just this new dependency make it work:

implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.netflix.graphql.dgs:graphql-dgs-subscriptions-websockets-autoconfigure")

If you use 2 starters of DGS it will not work.
That way you have WebFlux and WebSockets subscriptions support.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@berngp
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant