sync
suspend fun SignalingServer.sync(exchange: Exchange<Message.Incoming, Message.Outgoing>, onParticipantsChanged: (Set<PeerIdentifier>) -> Unit = {}): Nothing
Content copied to clipboard
Syncs the SendExchange to the peers available in the SignalingServer. The synchronisation process won't terminate, but may be cancelled or throw an exception if the communication channel gets closed.
Receiver
the SignalingServer which provides information about the sites.
Parameters
exchange
the ReceiveExchange to which we're interested in syncing.
onParticipantsChanged
a callback which will be called when the participant count changes.