---
title: startMonitoring()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/netservice/startmonitoring()
---

# startMonitoring()

Starts the monitoring of TXT-record updates for the receiver.

## Declaration

```swift
func startMonitoring()
```

## Discussion

Discussion The delegate must implement netService(_:didUpdateTXTRecord:), which is called when the TXT record for the receiver is updated.

## See Also

### Using Network Services

- [publish()](foundation/netservice/publish().md)
- [publish(options:)](foundation/netservice/publish(options:).md)
- [resolve()](foundation/netservice/resolve().md)
- [resolve(withTimeout:)](foundation/netservice/resolve(withtimeout:).md)
- [port](foundation/netservice/port.md)
- [stop()](foundation/netservice/stop().md)
- [stopMonitoring()](foundation/netservice/stopmonitoring().md)
