---
title: "send(_:to:)"
framework: groupactivities
role: symbol
role_heading: Instance Method
path: "groupactivities/groupsessionmessenger/send(_:to:)-4o52m"
---

# send(_:to:)

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

## Declaration

```swift
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 doc://com.apple.GroupActivities/documentation/GroupActivities/Participants/only(_:)-swift.enum.case option to specify a subset of participants.

## Discussion

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

- [send(_:to:)](groupactivities/groupsessionmessenger/send(_:to:)-2a4ku.md)
- [send(_:to:completion:)](groupactivities/groupsessionmessenger/send(_:to:completion:)-zufl.md)
- [send(_:to:completion:)](groupactivities/groupsessionmessenger/send(_:to:completion:)-9e0sn.md)
- [Participants](groupactivities/participants.md)
