public abstract void Disconnect(); // Disconnect from client. // Notify that client connected. public void NotifyClientConnectedEvent() { ClientEvent handler = NotifyConnected; NotifyConnected?.Invoke(); }
public abstract void Disconnect(); // Disconnect from the server. // Notify that server opened. public void NotifyServerConnectedEvent() { ServerEvent handler = NotifyConnected; NotifyConnected?.Invoke(); }