Method DisconnectClient
DisconnectClient(ulong)
Disconnects the remote client.
Declaration
public void DisconnectClient(ulong clientId)
Parameters
Type | Name | Description |
---|---|---|
ulong | clientId | The ClientId to disconnect |
DisconnectClient(ulong, string)
Disconnects the remote client.
Declaration
public void DisconnectClient(ulong clientId, string reason = null)
Parameters
Type | Name | Description |
---|---|---|
ulong | clientId | The ClientId to disconnect |
string | reason | Disconnection reason. If set, client will receive a DisconnectReasonMessage and have the reason available in the NetworkManager.DisconnectReason property |