Skip to content

Commit

Permalink
Update large-room.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
pawan-100ms authored Oct 4, 2023
1 parent 3c65d6e commit aacc238
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/ios/v2/how-to-guides/interact-with-room/peer/large-room.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Listen to callbacks when local or remote peer’s hand raise status is changed

```swift
func on(peer: HMSPeer, update: HMSPeerUpdate) {
if(update == .handRaiseUpdated) {
// Update UI of hmsPeer
}
if(update == .handRaiseUpdated) {
// Update UI of hmsPeer
}
}
```

Expand All @@ -54,13 +54,13 @@ Use **peerCount** property of HMSRoom to get the latest peer count of the room.

```swift
func on(room: HMSRoom, update: HMSRoomUpdate) {
if(update == .peerCountUpdated) {
// Update UI of peer count
}
if(update == .peerCountUpdated) {
// Update UI of peer count
}
}
```

# How to get list of peers in a large room
# Supporting Large Scale Room

You don't want to fetch every peer if the room is very large. You get a peer list iterator instead.

Expand All @@ -82,7 +82,7 @@ You use **next** method on **HMSPeerListIterator** to check if there are more pe
```swift
peerListIterator.next() { loadedPeers, error in
if let loadedPeers = loadedPeers {
// store newly loaded peers to show in UI
// store newly loaded peers to show in UI
}
}
```
Expand Down

0 comments on commit aacc238

Please sign in to comment.