session(_:didFailWithError:)
Sent to the delegate when a serious error has occurred in the session.
Declaration
optional func session(_ session: GKSession, didFailWithError error: any Error)Parameters
- session:
The session that failed.
- error:
The error that occurred.
Discussion
This method is called when a serious internal error occurred in the session. Your application should disconnect the session from other peers and release the session.