---
title: wake()
framework: networkextension
role: symbol
role_heading: Instance Method
path: networkextension/neprovider/wake()
---

# wake()

Handle a wake event.

## Declaration

```swift
func wake()
```

## Discussion

Discussion This method is called by the system when the device wakes up from sleep mode. NEProvider subclasses should override this method if the provider needs to perform any tasks when the device wakes up, such as reconnecting a tunnel connection.

## See Also

### Handling sleep and wake

- [sleep(completionHandler:)](networkextension/neprovider/sleep(completionhandler:).md)
