---
title: viabilityUpdateHandler
framework: network
role: symbol
role_heading: Instance Property
path: network/nwconnection/viabilityupdatehandler
---

# viabilityUpdateHandler

A handler that receives updates when data can be sent and received.

## Declaration

```swift
@preconcurrency final var viabilityUpdateHandler: (@Sendable (Bool) -> Void)? { get set }
```

## See Also

### Handling Path Updates

- [currentPath](network/nwconnection/currentpath.md)
- [pathUpdateHandler](network/nwconnection/pathupdatehandler.md)
- [betterPathUpdateHandler](network/nwconnection/betterpathupdatehandler.md)
