How to query the roster using JSJAC XMPP client

Posted by araja on Stack Overflow See other posts from Stack Overflow or by araja
Published on 2010-04-02T07:38:41Z Indexed on 2010/04/02 7:43 UTC
Read the original article Hit count: 255

Filed under:
|

How can I query full roster using JSJAC XMPP client? I have tried following function for this, but it does not work:

function getRoster(con){
    var roster = new JSJaCIQ();
    roster.setIQ(null, 'get', 'roster_1');
    roster.setQuery(NS_ROSTER);
    con.send(roster);
 }

© Stack Overflow or respective owner

Related posts about xmpp

Related posts about jabber