public void DisconnectClient(uint clientId) { NetId netId = new NetId(clientId); if (netId.IsHost() || netId.IsInvalid()) { return; } RelayTransport.Disconnect(netId.HostId, netId.ConnectionId, out byte error); }
public void DisconnectFromServer() => RelayTransport.Disconnect(serverHostId, serverConnectionId, out byte error);