Link mergedLink = Link.split(
(request) => request.isSubscription,
GraphQLInspectorLink(wsLink),
GraphQLInspectorLink(httpLink),
)
StreamSubscription? _subscription;
What went wrong:
_subscription?.cancel();
When I called to cancel, it still subscribed to the subscription. And not called cancel to the backend. I have tested removing the GraphQLInspectorLink on Wslink. Then, it worked normally.
StreamSubscription? _subscription;
What went wrong:
_subscription?.cancel();
When I called to cancel, it still subscribed to the subscription. And not called cancel to the backend. I have tested removing the GraphQLInspectorLink on Wslink. Then, it worked normally.
Maybe related to this case?
https://github.com/zino-hofmann/graphql-flutter/issues/126