Endpoint Presence
Endpoint Presence is a fancy way of saying
"status", and references the current state a given user, or "endpoint", is in (available, unavailable, away, at lunch, etc.). In the example below, you can set the status of either Bob or Alice and see how all other users in the group are immediately notified of their status update. This is accomplished using the
setPresence method of the
Client object (which allows you to set your current status), and the
onPresence event of the
Endpoint object (which allows you to listen for status updates for other endpoints). There are also two convenience methods
setOnline and
setOffline which make it even easier to set status to "available" or "unavailable".