Contents

respond(response:)

Respond to the session after receiving and processing an APDU.

Declaration

final func respond(response: Data) async throws

Parameters

  • response:

    The APDU data to send as a response.

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.