Fix subscriptions in JS (#1124)

This commit is contained in:
Yves-Gwenael Bourhis 2021-02-23 05:19:20 +01:00 committed by GitHub
parent beb2e4aae3
commit 007768b454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {