Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Spring subscription example #60

Closed
rwilliams-r7 opened this issue Feb 26, 2018 · 7 comments
Closed

Spring subscription example #60

rwilliams-r7 opened this issue Feb 26, 2018 · 7 comments

Comments

@rwilliams-r7
Copy link

I have found the following example https://github.com/graphql-java/graphql-java-subscription-example which use graphql-java for subscriptions over a websocket.

I have been trying to do the same idea within the spring version but have not been able to understand how it fits together. Do we have a spring version of the example above, or something similar?

I have been struggling to understand how the Publisher from GraphQLSubscriptionResolver fits together with websockets.

@bulka777
Copy link

Isn't GraphQLSubscriptionResolver a concept from graphql-java-tools? There is an example request there as well: graphql-java-kickstart/graphql-java-tools#88.

It would be nice to see a reference implementation for it using spring specific websocket support though. Working through that now myself.

@rwilliams-r7
Copy link
Author

@bulka777, yes trying to work through it myself. I am finding it hard to connect the Publish return value from a class that implements GraphQLSubscriptionResolver, to a given websocket, hope you have more luck.

@rwilliams-r7
Copy link
Author

@bulka777 did you have any luck?

@bulka777
Copy link

bulka777 commented Mar 2, 2018

Didn't really find time to play with it yet. Will post back if I do.

@Syl1234
Copy link

Syl1234 commented Apr 17, 2018

Any news on how tu use subscription !
I'm not that sure that GraphiQL supports subscription also ?
Is there any documentation related to that subject.

@reithma
Copy link

reithma commented Jul 13, 2018

Greetings and sorry for reviving this topic.

Are there any news on this issue or progress on a successful implementation of a subscription in spring?
I'd be very thankful if someone pointed me to a direction where i could find an example (would gladly try to do a pr if i'm successful and happy with my implementation aswell!)

@oliemansm
Copy link
Member

PR #95 contains support for subscriptions and a reference implementation in example-graphql-subscription. Will merge it once reviews and tests are done.

@oliemansm oliemansm reopened this Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants