<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WASubscriberBrowser/Action/connecting(to:from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware19WASubscriberBrowserV6ActionV10connecting2to4fromAeC7DevicesV_AA21WASubscribableServiceVtFZ"
  },
  "title" : "connecting(to:from:)"
}
-->

# connecting(to:from:)

Subscribes to the provided service over Wi-Fi, providing browse results for connecting to the specified paired devices if available.

```
static func connecting(to pairedDevices: WASubscriberBrowser.Devices, from mySubscribingService: WASubscribableService) -> WASubscriberBrowser.Action
```

## Parameters

`pairedDevices`

The devices to connect to. The browser isn’t activated if no devices are specified.

`mySubscribingService`

The service to discover.

## Return Value

A new `Action` configuring this operation.

## Discussion

When subscribing, the `NetworkBrowser` provides a [`WAEndpoint`](/documentation/WiFiAware/WAEndpoint) for each discovered paired device, and the app can then create a `NetworkConnection` object to connect to each. Data path parameters including the [`WAPerformanceMode`](/documentation/WiFiAware/WAPerformanceMode) are set when creating the connection, using [`WAParameters`](/documentation/WiFiAware/WAParameters) written into the <doc://com.apple.documentation/documentation/Network/NWParameters> for the `NetworkConnection`.

---

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)