Enum NetworkTransport.DisconnectEvents
The Netcode for GameObjects standardized disconnection event types.
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public enum NetworkTransport.DisconnectEvents
Fields
| Name | Description |
|---|---|
| AuthenticationFailure | If transport has mapped its disconnect events, this event signifies that the connection was closed due to an authentication failure. |
| ClosedByRemote | If transport has mapped its disconnect events, this event signifies that the remote endpoint closed the connection. |
| ClosedRemoteConnection | If transport has mapped its disconnect events, this event signifies the local transport closed the incoming remote endpoint connection. |
| Disconnected | If transport has mapped its disconnect events, this event signifies a graceful disconnect. |
| MaxConnectionAttempts | If transport has mapped its disconnect events, this event signifies that the disconnect is due to the maximum number of failed connection attempts has been reached. |
| ProtocolError | If transport has mapped its disconnect events, this event signifies that a lower-level (unkown) transport error occurred. |
| ProtocolTimeout | If transport has mapped its disconnect events, this event signifies that the transport's connection to the endpoint has timed out and the connection was closed. |
| TransportShutdown | If transport has mapped its disconnect events, this event signifies that the transport closed the connection due to a locally invoked shutdown. |