Called when data is received from a player.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
GKMatch object that received the data.
The bytes sent by the player.
GKPlayer object identifying the player that sent the data.
Your game defines its own format for data packets it transmits and receives over the network. Listing 1 shows one way to handle an incoming message from another player.
Receiving Data from Other Players