Instance Property

stateUpdateHandler

A handler that receives connection state updates.

Declaration

final var stateUpdateHandler: ((NWConnection.State) -> Void)? { get set }

See Also

Handling State Updates

var state: NWConnection.State

The current state of the connection.

enum NWConnection.State

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