You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I am trying to use websocket for both subscriptions and query, using the
DataFetchingEnvironment
to get my user Principal by doingenv.context.session.userPrincipal
.The
ApolloSubscriptionProtocolHandler
handle this in thecreateInvocationInput
method, we should to this as well in theFallbackSubscriptionProtocolHandler
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 theenv.context
The text was updated successfully, but these errors were encountered: