---
title: eventStream
framework: secureelementcredential
role: symbol
role_heading: Instance Property
path: secureelementcredential/credentialsession/eventstream
---

# eventStream

An asynchronous stream of session events.

## Declaration

```swift
var eventStream: AsyncStream<CredentialSession.Event> { get async }
```

## Discussion

Discussion Consume and handle events as the session produces then. Do this with a for-await-in loop over the stream, like the following example: for await event in session.eventStream {     // Handle event. }

## See Also

### Handling session events

- [CredentialSession.Event](secureelementcredential/credentialsession/event.md)
