Closed
Description
I am trying to use websocket for both subscriptions and query, using the DataFetchingEnvironment
to get my user Principal by doing env.context.session.userPrincipal
.
The ApolloSubscriptionProtocolHandler
handle this in the createInvocationInput
method, we should to this as well in the FallbackSubscriptionProtocolHandler
so even if is not a subscription query the websocket session is available for authentication or any other use case related to the have the WSSession in the env.context