Enum ConnectionEvent
The connection event type set within ConnectionEventData to signify the type of connection event notification received.
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public enum ConnectionEvent
Remarks
ConnectionEventData is returned as a parameter of the OnConnectionEvent event notification.
ClientConnected and ClientDisconnected event types occur on the client-side of the newly connected client and on the server-side.
PeerConnected and PeerDisconnected event types occur on connected clients to notify that a new client (peer) has joined/connected.
Fields
Name | Description |
---|---|
ClientConnected | This event is set on the client-side of the newly connected client and on the server-side. |
ClientDisconnected | This event is set on the client-side of the client that disconnected client and on the server-side. |
PeerConnected | This event is set on clients that are already connected to the session. |
PeerDisconnected | This event is set on clients that are already connected to the session. |