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

Android does not receive CONNECTION_LOST event #41

Open
DigiEggz opened this issue Jul 14, 2021 · 0 comments
Open

Android does not receive CONNECTION_LOST event #41

DigiEggz opened this issue Jul 14, 2021 · 0 comments

Comments

@DigiEggz
Copy link

DigiEggz commented Jul 14, 2021

When connected on Android, the app doesn't properly fire the SFSEvent.CONNECTION_LOST when the connection to the server is lost. HTML5, Windows, macOS and even iOS do not exhibit this issue.

In this example, I manually shut down the server, but the closed socket event isn't read. The client continually keeps running, repeatedly spitting out the following:

com/smartfoxserver/v2/bitswarm/BitSwarmClient.hx:556: ## SocketError:[IOErrorEvent type="ioError" bubbles=true cancelable=false text="Operation attempted on invalid socket." errorID=0]

I tried listening for a SFSEvent.SOCKET_ERROR, but nothing fires for that either, although that may be by design.

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

1 participant