Abdelazeem777 / requests_inspector

MIT License
11 stars 18 forks source link

When wrapped GraphQLInspectorLink on WsLink, cancel subscription not working. #29

Open Punlork opened 7 months ago

Punlork commented 7 months ago
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.

Maybe related to this case?

https://github.com/zino-hofmann/graphql-flutter/issues/126

Abdelazeem777 commented 5 months ago

Hello @Punlork

Sorry for the late answer Is it still happening on the latest version ?