---
title: endSession()
framework: cryptotokenkit
role: symbol
role_heading: Instance Method
path: cryptotokenkit/tksmartcard/endsession()
---

# endSession()

Completes any pending transmissions and ends the session to the Smart Card.

## Declaration

```swift
func endSession()
```

## Discussion

Discussion Calls to this method should balance calls to beginSession(reply:).

## See Also

### Communicating with the Smart Card

- [beginSession(reply:)](cryptotokenkit/tksmartcard/beginsession(reply:).md)
- [transmit(_:reply:)](cryptotokenkit/tksmartcard/transmit(_:reply:).md)
