This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
Replies: 1 comment
-
Guessing being https://github.com/apollographql/subscriptions-transport-ws was supported by Apollo that's where that protocol name comes from. I'm also trying to figure this out, how to configure the server to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there! Been using this fantastic library for a while now but just recently tried to get subscriptions working and it strangely fails...
Been trying to debug why we can't get the new preferred transport for subscriptions in Apollo to work. I think I have found it.
The ApolloSubscriptionProtocolFactory sets it's type as "graphql-ws" but the protocol sent over the header from Apollo is "graphql-transport-ws". This is the proper name for the protocol as specified here:
https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md
This leads to subscriptions not working with the current library that Apollo recommends.
public ApolloSubscriptionProtocolFactory( GraphQLObjectMapper objectMapper, GraphQLSubscriptionInvocationInputFactory invocationInputFactory, GraphQLInvoker graphQLInvoker, Collection<ApolloSubscriptionConnectionListener> connectionListeners, Duration keepAliveInterval) { super("graphql-ws");
Beta Was this translation helpful? Give feedback.
All reactions