<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWConnectionGroup/send(content:to:message:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network17NWConnectionGroupC4send7content2to7message10completiony10Foundation4DataVSg_AA10NWEndpointOSgAC7MessageCyAA7NWErrorOSgctF"
  },
  "title" : "send(content:to:message:completion:)"
}
-->

# send(content:to:message:completion:)

Sends data to the entire group, or to a specific member of the group.

```
@preconcurrency final func send(content: Data?, to: NWEndpoint? = nil, message: NWConnectionGroup.Message = .default, completion: @escaping (NWError?) -> Void)
```

## Parameters

`content`

The data to send.

`to`

An optional endpoint that specifies a member of the group that receives the data. If the endpoint is `nil`, the data will be sent to the entire group.

`message`

The metadata that defines how the message is sent.

`completion`

A completion that notifies you when the connection group has processed and sent the data.

---

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)