https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
r

rudolf.hladik

04/20/2022, 2:46 PM
Hello there, is there some example using ktor and graphql-kotlin and subscriptions?
d

Dariusz Kuc

04/20/2022, 3:03 PM
I am unaware of any examples.
TLDR you would have to implement
graphql-ws
protocol https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md and expose it using websocket or server side events
within the lib we provide support for old/deprecated
apollo-ws
protocol only for
spring-server
It would be great if someone were to contribute generic
graphql-ws
implementation to the
graphql-kotlin-server
yeah approach # 2 would be great side note: current
apollo-ws
stuff should be just dropped as it is a deprecated protocol
j

Joe

07/19/2022, 7:27 PM
great I'll add this to my side project list, no promises on timeline 🙂 we at least still use the deprecated protocol in some of our python consumers, so would prefer to leave in support for both and not break existing clients.
7 Views