session(_:didReceiveConnectionRequestFromPeer:)
Received by the delegate when a remote peer wants to create a connection to the session.
Declaration
optional func session(_ session: GKSession, didReceiveConnectionRequestFromPeer peerID: String)Parameters
- session:
The session that received the request.
- peerID:
A string that uniquely identifies the peer.
Discussion
The delegate should call the session’s acceptConnection(fromPeer:) method if it wants to accept the connection or the denyConnection(fromPeer:) method if it wants to refuse the connection.