Instance Property

currentPath

The network path the connection is using.

Declaration

final var currentPath: NWPath? { get }

See Also

Handling Path Updates

var pathUpdateHandler: ((NWPath) -> Void)?

A handler that receives network path updates.

var viabilityUpdateHandler: ((Bool) -> Void)?

A handler that receives updates when data can be sent and received.

var betterPathUpdateHandler: ((Bool) -> Void)?

A handler that receives updates when an alternative network path is preferred over the current path.