ConnectyCube / connectycube-flutter-samples

Code samples for Flutter, based on ConnectyCube platform
https://developers.connectycube.com/flutter/
Apache License 2.0
85 stars 90 forks source link

When internet is slow, getting a timeout log but not getting a callback #324

Open divya-BV opened 5 months ago

divya-BV commented 5 months ago

Hi @TatankaConCube

I am using this 'connectycube_sdk: ^2.11.2' for adding chat in our application. When the network is good, things work well but when network is flaky i can see the internal logs of timeout but couldn't get the callback.

I tried resetting the timeout too but that too didn't work.

Can you please help with this issue

TatankaConCube commented 5 months ago

do you mean this CubeChatConnection.instance.connectionStateStream listener? could you please provide the log with the 'timeout' issue you say? can you reproduce the same issue in our Chat Sample?

divya-BV commented 5 months ago

@TatankaConCube yes i did use this as well. Also i have used

CubeChatConnectionSettings.instance.totalReconnections = 1; CubeChatConnectionSettings.instance.reconnectionTimeout = 300;

TatankaConCube commented 5 months ago

the reconnection manager will try to reconnect after losing the connection (the state changes to the ForceClosed), does the reconnection manager try to reconnect? do you receive the updated state ForceClosed?

divya-BV commented 5 months ago

@TatankaConCube yes it tries to reconnect. But after all the tries fail it doesnot give the timeout callback.

TatankaConCube commented 5 months ago

could you please provide the full log that contains the described issue?