DisconnectEventHandler Delegate


public delegate void DisconnectEventHandler(
  object sender,
  DisconnectReason reason,
  string desc);


  • sender: The source of the event.
  • reason: DisconnectReason enumeration.
  • desc: A human-readable disconnect reason.


This event can be invoked only on successfully connected clients. Except for a possibly registered progress handler (for a pending [Client]Disconnect request), no other client events will be invoked after [Client]OnDisconnect.