---
title: disconnect()
framework: foveatedstreaming
role: symbol
role_heading: Instance Method
path: foveatedstreaming/foveatedstreamingsession/disconnect()
---

# disconnect()

Disconnects from the remote streaming endpoint, ending the streaming session.

## Declaration

```swift
@MainActor final func disconnect() async
```

## Discussion

Discussion When this function returns, the foveated streaming session’s status will equal FoveatedStreamingSession.Status.disconnected(_:) with the reason appInitiatedDisconnect. You can reconnect by calling connect(endpoint:).
