Skip to content

Client always disconnect then reconnected #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aalfiann opened this issue Oct 30, 2019 · 3 comments
Open

Client always disconnect then reconnected #98

aalfiann opened this issue Oct 30, 2019 · 3 comments
Assignees

Comments

@aalfiann
Copy link

Actualy I this library has successful to send message and receive message. but there is one problem which is client is always disconnected and then reconnected itself for around 3 seconds. I have follow the example in this repo correctly but not solved.

I have developed socket io client for web version, and there is no issue in web version. socket is stable connected. web version is using transport polling.

My question is, how to know why android socket io client is always disconnected for around 3 seconds? I can't fixed this because there is no error log in client also on server. I just know the log client is connected then disconnected from server.

Expected behavior
Once client connected, this connection should stable until client disconnect by user activity.

Device details:

  • Device Type: Device
  • Model: Samsung M20
  • OS: Android Pie
  • Package Version: 28

Relevant Logs

No error log from client also server. there is only log for client is connected then disconnected only.
@aslamanver
Copy link
Contributor

aslamanver commented Oct 30, 2019

Hi @aalfiann ,

This issue is fixed in the below pull request, it will be merged to this library soon, meanwhile please use the fixed repository.

In your pubspec.yaml

adhara_socket_io:
  git:
    url: https://github.com/aslamanver/flutter_socket_io 

@tiholic
Fixed pull request: #96

@darwin-morocho
Copy link

Hi @aalfiann ,

This issue is fixed in the below pull request, it will be merged to this library soon, meanwhile please use the fixed repository.

In your pubspec.yaml

adhara_socket_io:
  git:
    url: https://github.com/aslamanver/flutter_socket_io 

@tiholic
Fixed pull request: #96

the issue still happens on iOS. I call manager to disconnect the user of my socket-io server and calling Navigator.pop to destroy the page but after few seconds this reconnect again even if the Page is not more visible.

@aslamanver
Copy link
Contributor

Hi @aalfiann ,

In iOS please try to downgrade the socket library and check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants