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

# WAPublisherListener

Configures a network listener to publish a service over Wi-Fi Aware and accept incoming connections from paired devices.

## Declaration

```swift
struct WAPublisherListener
```

## Overview

Overview Devices can publish services for other Wi-Fi Aware devices to use by creating a NetworkListener object from the Network framework, and passing in a .wifiAware() instruction indicating the WAPublishableService to provide, and the set of WAPairedDevice that can connect to the service. The code below configures the NetworkListener as a Wi-Fi Aware publisher by passing in a .wifiAware() instruction: NetworkListener(for: .wifiAware( .connecting(to:service,  from:.selected(devices)) ) )

## Topics

### Configuring a listener

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

### Creating publisher implementation details

- [configureParameters(_:)](wifiaware/wapublisherlistener/configureparameters(_:).md)
- [service](wifiaware/wapublisherlistener/service.md)
- [isApplicationService](wifiaware/wapublisherlistener/isapplicationservice.md)

## Relationships

### Conforms To

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

## See Also

### Publisher

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