Hello there, is there some example using ktor and ...
# graphql-kotlin
r
Hello there, is there some example using ktor and graphql-kotlin and subscriptions?
d
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
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.