---
title: EventSubscription
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/eventsubscription
---

# EventSubscription

A subscription to an event.

## Declaration

```swift
struct EventSubscription
```

## Topics

### Instance Methods

- [cancel()](realitykit/eventsubscription/cancel().md)
- [subscribe(to:)](realitykit/eventsubscription/subscribe(to:).md)

## See Also

### Core event types

- [Event](realitykit/event.md)
- [EventSource](realitykit/eventsource.md)
