# subscribeToPresence

fun subscribeToPresence(contact: Contact, onCompletion: (Either<Presence?, SippoResourceError>) -> Unit)

Subscribes to the presence of the specified contact.

#### Parameters

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.