---
title: WAPublisherListener.DatapathParameters
framework: wifiaware
role: symbol
role_heading: Structure
path: wifiaware/wapublisherlistener/datapathparameters
---

# WAPublisherListener.DatapathParameters

The parameter that sets the initial Wi-Fi Aware data path configuration for any devices that are connected.

## Declaration

```swift
struct DatapathParameters
```

## Overview

Overview The DatapathParameters is an optional “datapath:” component of the .wifiAware() instruction to a NetworkListener. If you don’t set a specific parameter, then the system applies the default parameters with bulk performance mode. The code below is an example of how to set a data path configuration: NetworkListener(for: .wifiAware( .connecting(to:service,  from:.selected(devices)) datapath: .defaults) ) important: Each service must have the same WAPerformanceMode on both the NetworkBrowser (subscriber) and NetworkListener (publisher) sides of the connection, or the resulting performance behavior is undefined. If not specified, the performance mode defaults to WAPerformanceMode.bulk on both sides.

## Topics

### Setting performance modes

- [defaults](wifiaware/wapublisherlistener/datapathparameters/defaults.md)
- [realtime](wifiaware/wapublisherlistener/datapathparameters/realtime.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Publisher

- [WAPublisherListener](wifiaware/wapublisherlistener.md)
- [WAPublisherListener.Action](wifiaware/wapublisherlistener/action.md)
- [WAPublisherListener.Devices](wifiaware/wapublisherlistener/devices.md)
