Skip to content

Replace graphql-ws with v3 subscription service #1736

@Dreamsorcerer

Description

@Dreamsorcerer

graphql-ws is dead and needs to be replaced by a subscription service in graphql-server in order to finish upgrading to v3:
graphql-python/graphql-ws#66 (comment)

This code will need to be updated for that new service and tested to check it works:

class CustomAiohttpSubscriptionServer(AiohttpSubscriptionServer):
def get_graphql_params(self, connection_context, *args, **kwargs):
params = super().get_graphql_params(
connection_context,
*args,
**kwargs,
)
params.update({'context_value': connection_context.request_context})
return params

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions