<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NetworkChannel/send(_:lastMessage:metadata:other:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network0A7ChannelC4send_11lastMessage8metadata5othery10Foundation4DataV_SbAA16NWProtocolFramerC0E0CSgSayAA0J8MetadataCGyXEtYaKAA0K0Vyqd__GRszAA0K8ProtocolRd__lF"
  },
  "title" : "send(_:lastMessage:metadata:other:)"
}
-->

# send(_:lastMessage:metadata:other:)

Send data on a connection.

```
func send<T>(_ content: Data, lastMessage: Bool = false, metadata: NWProtocolFramer.Message? = nil, @ProtocolMetadataBuilder other builder: () -> [NWProtocolMetadata] = {[]}) async throws where ApplicationProtocol == Framer<T>, T : FramerProtocol
```

## Parameters

`content`

The data to send.

`lastMessage`

The last message to send.

`metadata`

The metadata about the data being sent.

`builder`

A builder for specifying metadata about the content to send.

---

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)