<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WAPublisherListener",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware19WAPublisherListenerV"
  },
  "title" : "WAPublisherListener"
}
-->

# WAPublisherListener

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

```
struct WAPublisherListener
```

## Overview

Devices can publish services for other Wi-Fi Aware devices to use by creating a `NetworkListener` object from the
[Network](https://developer.apple.com/documentation/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:

```swift
NetworkListener(for: .wifiAware( .connecting(to:service,  from:.selected(devices)) ) )
```

## Topics

### Configuring a listener

[`struct Action`](/documentation/WiFiAware/WAPublisherListener/Action)

The structure that configures the Wi-Fi Aware publisher operation that the network listener performs.

[`struct Devices`](/documentation/WiFiAware/WAPublisherListener/Devices)

The structure that determines the devices to connect to.

[`struct DatapathParameters`](/documentation/WiFiAware/WAPublisherListener/DatapathParameters)

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

### Creating publisher implementation details

[`func configureParameters(NWParameters)`](/documentation/WiFiAware/WAPublisherListener/configureParameters(_:))

Configures the provided parameters for a Wi-Fi Aware publish operation and connection.

[`var service: NWListener.Service`](/documentation/WiFiAware/WAPublisherListener/service)

The service data for the Wi-Fi Aware publish operation.

[`var isApplicationService: Bool`](/documentation/WiFiAware/WAPublisherListener/isApplicationService)

A Boolean value that determines whether the devices are listening for an application service.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`ListenerProvider`](/documentation/Network/ListenerProvider)

---

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)