Contents

send(_:to:dataMode:)

Transmits data to one or more players connected to the match.

Declaration

func send(_ data: Data, to players: [GKPlayer], dataMode mode: GKMatch.SendDataMode) throws

Parameters

  • data:

    The bytes to send.

  • players:

    The players who receive the data.

  • 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