---
title: "stayActiveRequest(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustericdmanagement/stayactiverequest(with:completion:)"
---

# stayActiveRequest(with:completion:)

Command StayActiveRequest

## Declaration

```swift
func stayActiveRequest(with params: MTRICDManagementClusterStayActiveRequestParams, completion: @escaping @Sendable (MTRICDManagementClusterStayActiveResponseParams?, (any Error)?) -> Void)
```

```swift
func stayActiveRequest(with params: MTRICDManagementClusterStayActiveRequestParams) async throws -> MTRICDManagementClusterStayActiveResponseParams
```

## Discussion

Discussion This command allows a client to request that the server stays in active mode for at least a given time duration (in milliseconds) from when this command is received.
