From 8edc5d6ce0ba65192fa82c8b129b5462fffbe564 Mon Sep 17 00:00:00 2001 From: Yves-Gwenael Bourhis Date: Fri, 19 Feb 2021 13:26:16 +0100 Subject: [PATCH] Fix subscriptions in JS --- graphene_django/static/graphene_django/graphiql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/static/graphene_django/graphiql.js b/graphene_django/static/graphene_django/graphiql.js index 8c3b5ce..ac010e8 100644 --- a/graphene_django/static/graphene_django/graphiql.js +++ b/graphene_django/static/graphene_django/graphiql.js @@ -123,8 +123,8 @@ if (operationType === "subscription") { return { subscribe: function (observer) { - subscriptionClient.request(graphQLParams).subscribe(observer); activeSubscription = subscriptionClient; + return subscriptionClient.request(graphQLParams, opts).subscribe(observer); }, }; } else {