Skip to content

Commit b8e6b89

Browse files
authored
Merge pull request #57 from Bandwidth/EDGE-1027
EDGE-1027 updated README to match SDK specs for AddParticipantToSessionAsync method
2 parents e715986 + 4b52521 commit b8e6b89

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,13 @@ var participant = new Participant()
160160
// Create a new participant to join to the session.
161161
var createParticipantResponse = await _client.WebRtc.APIController.CreateParticipantAsync("1111111", participant);
162162
var participantId = createParticipantResponse.Data.Participant.Id;
163+
var subscriptions = new Subscriptions()
164+
{
165+
SessionId = sessionId
166+
};
163167

164168
// Add the newly created participant to the session.
165-
_client.WebRtc.APIController.AddParticipantToSessionAsync("1111111", sessionId, participantId);
169+
_client.WebRtc.APIController.AddParticipantToSessionAsync("1111111", sessionId, participantId, subscriptions);
166170
```
167171

168172
## Supported .NET Versions

0 commit comments

Comments
 (0)