Contents

sendData(toAllPlayers:with:)

Transmits data to all players connected to the match.

Declaration

func sendData(toAllPlayers data: Data, with mode: GKMatch.SendDataMode) throws

Parameters

  • data:

    The bytes to send.

  • mode:

    The mechanism used to send the data.

Mentioned in

Discussion

The match queues the data and transmits it when the network becomes available.

See Also

Sending data to other players