cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
602
Views
0
Helpful
0
Replies

Get SubscribePresence status in Jabber Javascript API

glagidse1
Level 1
Level 1

Hello,

If I make a HTML tab in jabber, and I call "SubscribePresence" as described here: http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/11_6/cjab_b_feature-configuration-for-cisco-jabber/cjab_b_feature-configuration-for-cisco-jabber_chapter_01.html

This works, I can subscribe to the status of users and I get events in OnPresenceStateChanged. But I have no knowledge if I'm subscribed to something; If I subscribe and I refresh the page, I'll have to subscribe again because I don't know that I've already subscribed and I'll start receiving presence changes multiple times.

What I'm looking for is functions like UnsubscribePresence(), and GetSubscribedPresences(), but I can't find any kind of mention of this on the internet or in manuals. SubscribePresence isn't very useful without these functions,  Am I doing something wrong?

0 Replies 0