<!--
{
  "availability" : [
    "visionOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoveatedStreaming",
  "identifier" : "/documentation/FoveatedStreaming/FoveatedStreamingSession/MessageChannel/sendMessage(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foveated Streaming"
    ],
    "preciseIdentifier" : "s:17FoveatedStreaming0aB7SessionC14MessageChannelC04sendD0yy10Foundation4DataVKF"
  },
  "title" : "sendMessage(_:)"
}
-->

# sendMessage(_:)

Sends data to the streaming endpoint on this channel.

```
func sendMessage(_ data: Data) throws
```

## Parameters

`data`

The data to send to the streaming endpoint.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)