Skip to content

FallbackSubscriptionProtocolHandler should preserver the session #137

Closed
@guitcastro

Description

@guitcastro

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions