UDP Client Event - OnDisconnect

The event is raised when the client successfully disconnects from Diarkis server cluster.

 

udp.OnDisconnect += OnUdpDisconnect;

private void OnUdpDisconnect(bool reconnecting)
{
  // bool reconnecting is set to true only when udp.Reconnect() is used.
}