---
title: "respond(response:)"
framework: corenfc
role: symbol
role_heading: Instance Method
path: "corenfc/cardsession/apdu/respond(response:)"
---

# respond(response:)

Respond to the session after receiving and processing an APDU.

## Declaration

```swift
final func respond(response: Data) async throws
```

## Parameters

- `response`: The APDU data to send as a response.

## Discussion

Discussion Your client must respond to each APDU it receives. Failing to respond throws an error. If your client disposes an APDU object without responding, the card emulation ends. warning: Only respond to a given APDU once. Calling this method more than once raises fatalError(_:file:line:). The exception to this is if the call throws CardSession.Error.transmissionError. In this case, you can retry the response by calling respond(response:) again.
