---
title: stateUpdateHandler
framework: network
role: symbol
role_heading: Instance Property
path: network/nwconnection/stateupdatehandler
---

# stateUpdateHandler

A handler that receives connection state updates.

## Declaration

```swift
@preconcurrency final var stateUpdateHandler: (@Sendable (NWConnection.State) -> Void)? { get set }
```

## See Also

### Handling State Updates

- [state](network/nwconnection/state-swift.property.md)
- [NWConnection.State](network/nwconnection/state-swift.enum.md)
