Instance Method

match(_:didFailWithError:)

Called when the match cannot connect to any other players.

Declaration

optional func match(_ match: GKMatch, didFailWithError error: Error?)

Parameters

match

The match that received the error.

error

The error that occurred.

Discussion

This method is called if the match cannot connect to any other players associated with the match. It usually means a serious networking error has occurred.