send(_:toPlayers:with:)
Transmits data to a list of connected players.
Declaration
func send(_ data: Data, toPlayers playerIDs: [String], with mode: GKMatch.SendDataMode) throwsParameters
- data:
The bytes to send.
- playerIDs:
The identifier strings for the list of players who should receive the data.
- mode:
The mechanism used to send the data.
Discussion
The match queues the data and transmits it when the network becomes available.