Skip to content
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

Socket not listen in random cases #686

Open
rohitvolumetree opened this issue Oct 20, 2021 · 2 comments
Open

Socket not listen in random cases #686

rohitvolumetree opened this issue Oct 20, 2021 · 2 comments
Labels

Comments

@rohitvolumetree
Copy link

I am using socket dependency "io.socket:socket.io-client:0.8.3"
and the server version is 2.3.0.

In our product, we use to emit socket from web panel and Android app listens to it and performs an action, but in random cases, socket does not listen.

Some code snippets are -

private val options by lazy { IO.Options().apply { reconnection = true timeout = 60000 } }

private val socket by lazy { IO.socket(baseUrl, options) }

Need help to resolve this issue.

@darrachequesne
Copy link
Member

Unfortunately, this is a bit too vague for us to be able to help you.

Do you know which device/android version is impacted? 0.8.3 is quite an old release, could you please check if that's fixed in recent versions?

@rohitvolumetree
Copy link
Author

@darrachequesne
Also tried with the latest version but then it starts disconnecting with errors like -
Socket error io.socket.engineio.client.EngineIOException: xhr poll error
even after adding transports - private val transportsList = arrayOf(Polling.NAME, PollingXHR.NAME, WebSocket.NAME)

We have found one scenario when the user logs in then the sockets do not listen. But when user kills the app and relaunches the app then sockets start listening.

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

No branches or pull requests

2 participants