flutter_socket_io icon indicating copy to clipboard operation
flutter_socket_io copied to clipboard

Connection Reconnecting after every 10 seconds

Open vikas-shrma opened this issue 6 years ago • 2 comments

HI

When i trying to connect with server then it connect successful and after every 8-10 seconds its disconnect and connect again due to this some time i am not getting response

Have you tried reproducing the issue with example available in this repo? Yes/No?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

I want my Connection stable when i am not disconnect manually

Device details:

  • Device Type: Both
  • Model:Xiaomi Redmi Note 8 Pro
  • OS: Android 9.0
  • Package Version 28

Relevant Logs

 D/Adhara:Socket: Socket triggered::disconnect
2020-04-26 10:39:26.216 19254-19938/com.xx.app D/Adhara:Socket: Socket triggered::connect
2020-04-26 10:39:36.230 19254-19940/com.xx.app D/Adhara:Socket: Socket triggered::disconnect
2020-04-26 10:39:37.732 19254-19948/com.xx.app D/Adhara:Socket: Socket triggered::connect
2020-04-26 10:39:47.744 19254-19951/com.xx.app D/Adhara:Socket: Socket triggered::disconnect
2020-04-26 10:39:49.526 19254-19959/com.xx.app D/Adhara:Socket: Socket triggered::connect

vikas-shrma avatar Apr 26 '20 05:04 vikas-shrma

Hi @vksBhardwaj

We have similar problem https://github.com/infitio/flutter_socket_io/issues/124

You need to use "release debug mode" to avoid these problems.

husmen73 avatar May 07 '20 11:05 husmen73

https://github.com/infitio/flutter_socket_io/pull/128

This PR should resolve your issue. Please try pointing to source branch and test with any android device

tiholic avatar May 23 '20 21:05 tiholic