-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
detect only mirror server problems (not user network or.. problems) #3587
Comments
I'm experiencing a similar problem (but with Telepathy transport). If I attempt to connect and the server is unavailable - detecting this is difficult. Or also if during a session, the network drops - I'd like specific events related to the actual connection. Hooking this to client status events is very messy. |
One thing I can think of is for Mirror to emit a Mirage does have such a enum that has predefined reasons why a connection was terminated upon disconnection. Speaking from that standpoint, if the server terminates your connection due to a exception, you get However, this would not help you if the server suddenly chokes and dies a horrible It may be possible to do something like Source's networking where you get a "WARNING: Connection problem. Disconnecting in 30.0s" when the network seems to have stalled, but I don't know how much work (and by that the priority of the idea) that'll be for Mirror's dev team. |
Any disconnect reason can only be sent unreliable, so its just a best try effort, you should never rely on it. The only way to detect server issues is to have a master server your server report to, but thats not really something mirror related. |
I am using Mirror Networking and the SimpleWeb transport in Unity. I want to be able to detect when there is an issue on the server side, preventing users from connecting to the Mirror server. For instance, if the server becomes unavailable or terminates connections due to its own problems, I need to be notified of these events. My goal is to identify server-side issues rather than user-side problems.
The text was updated successfully, but these errors were encountered: