graphql-flutter icon indicating copy to clipboard operation
graphql-flutter copied to clipboard

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

Open GujjuFlutterGuy opened this issue 2 years ago • 2 comments

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 avatar Jan 09 '23 07:01 GujjuFlutterGuy

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

GujjuFlutterGuy avatar Jan 09 '23 09:01 GujjuFlutterGuy

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.

davidpanic avatar Mar 09 '23 12:03 davidpanic