Called by the delegate to reject a connection request received from a remote peer.
- iOS 3.0–7.0Deprecated
- macOS 10.10–10.10Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 3.0–2.0Deprecated
The string identifying the peer that initiated the connection to the session.
When your session acts as a server, client peers can discover your session and attempt to connect to it. When a client attempts to connect to the session, the delegate’s
session(_: method is called to decide whether the peer should be connected. Your application calls this method to reject the request or
accept to accept it.