Hello, I successfully configured subscriptions to ...
# graphql-kotlin
p
Hello, I successfully configured subscriptions to work on server using
graphql-kotlin-ktor-server
lib, and I get the updates successfully in graphiql console. but when I try to use subscriptions on client using apollo client, I don't get any data I tried using both
<ws://localhost:4000/graphql>
and
<ws://localhost:4000/subscriptions>
when I try to connect using
wscat -c <ws://localhost:4000/subscriptions>
I get
error: Unexpected server response: 400
I have followed this https://www.apollographql.com/tutorials/apollo-kotlin-android-part2/08-subscriptions with no success.
Subscription functionality was missing in Apollo Kotlin for wasmJs target. I have added it in https://github.com/apollographql/apollo-kotlin/pull/6637 and it is available in v5.0.0-alpha.2.