---
title: "openMessageChannel(_:)"
framework: Foveated Streaming
role: symbol
role_heading: Instance Method
platforms: [visionOS 27.0+]
path: "foveatedstreaming/foveatedstreamingextension/openmessagechannel(_:)"
---

# openMessageChannel(_:)

Handles a message channel opened by the host app.

## Declaration

```swift
@MainActor func openMessageChannel(_ channel: Self.MessageChannel) throws
```

## Parameters

- `channel`: The channel to service.

## Discussion

Discussion The framework vends the FoveatedStreamingProviderMessageChannel and calls this when the host opens a channel.
