Current documentation is a little misleading regarding network error messages. I’m using Unity 5.4.1f1.
The documentation states the following:
“If the connection fails, a MsgType.Error message will be generated”
https://docs.unity3d.com/540/Documentation/ScriptReference/Networking.NetworkClient.Connect.html
I’m using NetworkClient.Connect, and am listening for a MsgType.Error, and receive no calls to the listening delegate, I’m deliberately connecting to an ip not running a server to test this. I looked for MsgType.SystemError, or MsgType.SYSTEM_ERROR, but these don’t seem to be available in 5.4.x.
I don’t seem to be able to receive a message when an attempt to connect to a server fails. Does anyone have a solution to this?