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 throwsParameters
- 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.