---
title: "pong(_:metadata:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/networkchannel/pong(_:metadata:)"
---

# pong(_:metadata:)

Send a pong frame on a connection.

## Declaration

```swift
func pong<Content>(_ content: Content? = nil, @ProtocolMetadataBuilder metadata builder: () -> [NWProtocolMetadata] = {[]}) async throws where Content : DataProtocol
```

## Parameters

- `content`: Optional pong data.
- `builder`: A builder for specifying metadata about the content to send.

## Discussion

Discussion This may be called before the connection is ready, in which case the send will be enqueued until the connection is ready to send.
