2.5.4 Display Presence Information
This use case describes how a user obtains and displays presence information for other users. The actor is a user.
The following diagram illustrates this process.
Figure 13: Process for displaying presence information
Preconditions
The protocol client can communicate with the relay servers that are associated with the user.
The user can see presence information for other users.
Steps
The user selects an option in the protocol client UI to display a list of other users.
The protocol client subscribes to presence information from the relay servers that are associated with the users to display.
The relay server updates the presence subscription records and notifies the protocol client of the presence information for the subscribed users.
The protocol client receives the presence information for the users, and then displays the list of users and presence information for each of those users.
The user closes the UI that displays the list of users.
The protocol client unsubscribes from the presence information for the other users.
The relay server updates the presence subscription records and removes the corresponding presence subscriptions for the protocol client.
Errors
Cannot connect to the relay server – The protocol client sets the presence information to a status of unknown and tries again when it can connect to the relay server.
Relay server errors – The protocol client sets the presence information to a status of unknown and tries again.
Client errors – The protocol client notifies the user of the error, sets the presence information to a status of unknown, and tries again.
Post-conditions
The user sees presence information for other users.
The user cannot see presence information for other users because an error occurred.