Class: UserDescriptor

UserDescriptor

Extended user information. Note that online and notifiable properties are eligible to use only if reachability function is enabled. You may check if it is enabled by reading value of Client's reachabilityEnabled property.

Properties:
Name Type Description
identity String User identity
friendlyName String User friendly name, null if not set
attributes Object Object with custom attributes for user
online Boolean User real-time channel connection status
notifiable Boolean User push notification registration status

Methods


subscribe()

Gets User object from descriptor and subscribes to it.
Returns:
Type
Promise.<User>