Contents

send(_:to:)

Sends a standard data object asynchronously to other participants in the group session.

Declaration

final func send(_ value: Data, to participants: Participants = .all) async throws

Parameters

  • participants:

    The recipients of the message. The default value of this parameter is the set of all active participants in the session. Use the Only(_:) Swift.enum.case option to specify a subset of participants.

Discussion

Use this method to send data with a standard data object. Your app is responsible for decoding and using the data it receives.

See Also

Sending data to the group