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

Unity - Request to add socket ping for ISocket #97

Open
ernesernesto opened this issue Sep 24, 2020 · 0 comments
Open

Unity - Request to add socket ping for ISocket #97

ernesernesto opened this issue Sep 24, 2020 · 0 comments
Labels

Comments

@ernesernesto
Copy link

If we're setting a low sendTimeoutSec for socket, when an app goes into background and went back into foreground (we're using ios), the socket close event won't fire immediately on unity app lifecycle callback.

We need a way to check whether a socket is still valid when application callback from unity called, since on that unity callback, we usually fire an rpc to check for time, online updates, etc. but apparently it would always return cancelled task error if we do it on that callback because the socket is already disconnected, but nakama would fire a close socket callback sometime later

As per discussion with @novabyte on gitter, there should be a way to do a socket ping but it got removed on latest unity client

Thanks

@lugehorsam lugehorsam changed the title Request to add socket ping for ISocket Unity - Request to add socket ping for ISocket Sep 21, 2022
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

3 participants