How do you limit number of connected users on MultipeerConnectivity in Swift?

549 Views Asked by At

How do you limit the number of connected peers on the MultipeerConnectivity Framework in Swift?

1

There are 1 best solutions below

2
On

Invite peers to join the session using an MCNearbyServiceBrowser object, an MCBrowserViewController object, or your own peer discovery code. (Sessions currently support up to 8 peers, including the local peer.) https://developer.apple.com/reference/multipeerconnectivity/mcsession