Instance Property

state

The current state of the connection.

Declaration

final var state: NWConnection.State { get }

See Also

Handling State Updates

enum NWConnection.State

States indicating whether a connection can be used to send and receive data.

var stateUpdateHandler: ((NWConnection.State) -> Void)?

A handler that receives connection state updates.