Handle XMPP stuff.
        
        
        
- Source:
Namespaces
Members
- 
    <static> login
- 
    
    Create new connection or attach to old- Source:
 
- 
    <static> login^2
- 
    
    Create new connection with given parameters.- Source:
 
- 
    <static> login^3
- 
    
    Attach connection with given parameters.- Source:
 
Methods
- 
    <private, static> _sendMessage(jid, msg, uid)
- 
    
    
    Create message stanza and send it.Parameters:Name Type Description jidJabber id msgMessage uidunique id - Source:
 
- 
    <static> addBuddy(username, alias)
- 
    
    
    Add buddy to my friendsParameters:Name Type Description usernamestring jid aliasstring - Source:
 
- 
    <private, static> attached()
- 
    
    
    Triggered if connection is attached- Source:
 
- 
    <private, static> connected()
- 
    
    
    Triggered if connection is established- Source:
 
- 
    <private, static> disconnected()
- 
    
    
    Triggered if lost connection- Source:
 
- 
    <static> getCapabilitiesByJid(jid)
- 
    
    
    Retrieves capabilities.Parameters:Name Type Description jid- Source:
 Returns:List of known capabilities
- 
    <static> hasFeatureByJid(jid, feature, cb) → {boolean}
- 
    
    
    Test if jid has given featuresParameters:Name Type Description jidstring Jabber id featurestring[] Single feature or list of features cbfunction Called with the result as first param. - Source:
 Returns:True, if jid has all given features. Null, if we do not know it currently.- Type
- boolean
 
- 
    <static> loadVcard(bid, cb, error_cb)
- 
    
    
    This function loads a vcard.Parameters:Name Type Description bidcberror_cb- Source:
 
- 
    <static> logout(complete) → {Boolean}
- 
    
    
    Logs user out of his xmpp session and does some clean up.Parameters:Name Type Description completeboolean If set to false, roster will not be removed - Source:
 Returns:- Type
- Boolean
 
- 
    <private, static> onAuthFail()
- 
    
    
    Triggered on auth fail.- Source:
 
- 
    <private, static> onConnfail(condition)
- 
    
    
    Triggered on connection faultParameters:Name Type Description conditionString information why we lost the connection - Source:
 
- 
    <private, static> onMessage(presence) → {Boolean}
- 
    
    
    Triggered on incoming message stanzasParameters:Name Type Description presencedom - Source:
 Returns:- Type
- Boolean
 
- 
    <private, static> onPresence(presence)
- 
    
    
    Triggered on incoming presence stanzasParameters:Name Type Description presencedom - Source:
 
- 
    <private, static> onRidChange(rid)
- 
    
    
    Triggerd if the rid changedParameters:Name Type Description ridinteger next valid request id - Source:
 
- 
    <private, static> onRoster(iq)
- 
    
    
    Triggered on initial roster loadParameters:Name Type Description iqdom - Source:
 
- 
    <private, static> onRosterChanged(iq) → {Boolean}
- 
    
    
    Triggerd on roster changesParameters:Name Type Description iqdom - Source:
 Returns:True to preserve handler- Type
- Boolean
 
- 
    <static> removeBuddy(jid)
- 
    
    
    Remove buddy from my friendsParameters:Name Type Description jidtype - Source:
 
- 
    <static> resFriendReq(from, approve)
- 
    
    
    response to friendship requestParameters:Name Type Description fromstring jid from original friendship req approveboolean - Source:
 
- 
    <static> sendMessage(bid, msg, uid)
- 
    
    
    Public function to send message.Parameters:Name Type Description bidcss jid of user msgmessage uidunique id - Source:
 
- 
    <static> sendPres()
- 
    
    
    Sends presence stanza to server.- Source: