From 007768b4544318635a172d28eeb08b0f830d7cc2 Mon Sep 17 00:00:00 2001 From: Yves-Gwenael Bourhis <1560334+ygbourhis@users.noreply.github.com> Date: Tue, 23 Feb 2021 05:19:20 +0100 Subject: [PATCH] Fix subscriptions in JS (#1124) --- 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 {