fun subscribeToPresence(contact: Contact, onCompletion: (Either<Presence?, SippoResourceError>) -> Unit): Unit
Subscribes to the presence of the specified contact.
contact
- Contact to subscribe to.
onCompletion
- Callback that will be invoked when the request is completed.
It will receive the contact's presence in case of success or a SippoResourceError otherwise.