---
title: delegate
framework: virtualization
role: symbol
role_heading: Instance Property
path: virtualization/vzvirtiosocketlistener/delegate
---

# delegate

The custom object you use to respond to port-based connection attempts.

## Declaration

```swift
weak var delegate: (any VZVirtioSocketListenerDelegate)? { get set }
```

## Discussion

Discussion Your delegate object must conform to the VZVirtioSocketListenerDelegate protocol.

## See Also

### Responding to new connections

- [VZVirtioSocketListenerDelegate](virtualization/vzvirtiosocketlistenerdelegate.md)
