---
title: "send(_:lastMessage:metadata:other:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/networkchannel/send(_:lastmessage:metadata:other:)"
---

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

Send data on a connection.

## Declaration

```swift
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.
