Openfire - Online Users

I am using an OpenFire server for instant messaging and a JSJaC JavaScript library on the client. I am new to XMPP technology.
I want to load a load. I want to send a list of users and get status for each. Sort of

$(function(){
    var UserList = ["Isis", "Jackob", "Oybek"];
    con.send(UserList, OnComplete);
});


function OnComplete(myList){
    for (el in myList)
        if (el.IsOnline) {
            // Do DOM Stuff
        }
}

Is it possible?
I searched the documentation, examples, and other similar answers, but did not find any links.

+5
source share
1 answer

. . , , , , . , "", , . , - , , , :

con.registerHandler('presence_in', function(p) { 
    var from = p.getFromJID()
    // do something interesting with p, from, etc.
});
+3

All Articles