Conversation
Here is a description of the different steps to create a multi-party communication with a focus on the possibility to join and leave a conference.
Check our tutorial on conference if needed to publish / subscribe your stream.
Create the conversation
do { conversation = try session.getOrCreateConversation(name: conversationId) } catch { showError(error) return }
Join the conversation :
conversation?.join(completion: { (error, accessAllowed) in if let error = error { showError(error) return } switch accessAllowed { case true: showMessage("Access allowed") case false: showMessage("Access denied") } })
Leave the conversation :
conversation.leave { self.conversation = nil }