zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.25k stars 620 forks source link

After connectOrReconnect the Initialising connection starts but subscription is not listening to new subscription result. #1277

Open GujjuFlutterGuy opened 1 year ago

GujjuFlutterGuy commented 1 year ago

Understand the scenario: Chat screen: Going back by calling GraphQLConfiguration.webSocketLink.connectOrReconnect(); Going back to home screen:

Disposing socket client..
Initialising connection

But the problem is after initialising connection it is not listening to new results nor new results are coming up.


I am using

graphql_flutter: ^5.1.1

@HofmannZ

GujjuFlutterGuy commented 1 year ago

@vincenzopalazzo Can you let me know what info you needed?

davidpanic commented 1 year ago

I am also experiencing this, my subscriptions stop working after the link is reconnected, the only way I managed to work around this was by retrying the subscription with an exponential back-off timeout until some data is received.