subscribeToPresenceBy

fun subscribeToPresenceBy(userUri: String, onCompletion: (Either<Presence?, SippoResourceError>) -> Unit)

Subscribes to the presence of the specified userUri.

Parameters

userUri

The UserUri to subscribe to.

onCompletion

Callback that will be invoked when the request is completed. It will receive the presence list in case of success or a SippoResourceError otherwise.