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

# disconnect()

Manually disconnects and closes the data channel.

## Declaration

```swift
func disconnect()
```

## Discussion

Discussion Sets the channelStatus to FoveatedStreamingSession.MessageChannel.ChannelStatus.closed.
