// Notify that client disconnected. public void NotifyClientDisconnectedEvent() { ClientEvent handler = NotifyDisconnected; NotifyDisconnected?.Invoke(); }
// Notify that server close. public void NotifyServerDisconnectedEvent() { ServerEvent handler = NotifyDisconnected; NotifyDisconnected?.Invoke(); }