Implements Multi-User Chat (XEP-0045).
        
        
        
- Source:
Members
- 
    <static> conn
- 
    
    strophe connection- Source:
 
- 
    <static> CONST
- 
    
    some constants- Source:
 
- 
    <static> helper :Object
- 
    
    Some helper functions.Type:- Object
 - Source:
 
- 
    <static> onStatus
- 
    
    Handle status codes. Every function gets room jid, nickname, member data and xdata.- Source:
 
Methods
- 
    <private, static> _showRoomConfiguration(room, config)
- 
    
    
    Show room configuration.Parameters:Name Type Description roomstring room jid configStrophe.x.Form current room config as Form object - Source:
 
- 
    <static> close(room)
- 
    
    
    Close the given room.Parameters:Name Type Description roomRoom jid - Source:
 
- 
    <static> destroy(room, handler_cb, error_cb)
- 
    
    
    Destroy the given room.Parameters:Name Type Description roomstring Room jid handler_cbfunction Function to handle the successful destruction error_cbfunction Function to handle an error - Source:
 
- 
    <static> emptyMembers(room)
- 
    
    
    Empty member list.Parameters:Name Type Description roomstring Room jid - Source:
 
- 
    <private, static> init(o)
- 
    
    
    Initialize muc plugin.Parameters:Name Type Description oobject Options - Source:
 
- 
    <static> initMenu()
- 
    
    
    Add entry to menu.- Source:
 
- 
    <private, static> initWindow(event, win)
- 
    
    
    Init group chat window.Parameters:Name Type Description eventEvent winjQuery Window object - Source:
 
- 
    <static> insertMember(room, nickname, memberdata)
- 
    
    
    Insert member to room member list.Parameters:Name Type Description roomstring Room jid nicknamestring Nickname memberdatastring Member data - Source:
 
- 
    <static> join(room, nickname, password, roomName, subject)
- 
    
    
    Join the given room.Parameters:Name Type Argument Description roomstring Room jid nicknamestring Desired nickname passwordstring <optional> 
 Password roomNamestring <optional> 
 Room alias subjectstring <optional> 
 Current subject - Source:
 
- 
    <static> leave(room)
- 
    
    
    Leave given room.Parameters:Name Type Description roomstring Room jid - Source:
 
- 
    <private, static> onAddRoster(event, room, data, bud)
- 
    
    
    Prepare group chat roster item.Parameters:Name Type Description eventroomstring Room jid dataobject Room data budjQuery Roster item - Source:
 
- 
    <private, static> onErrorMessage(message)
- 
    
    
    Handle group chat error message.Parameters:Name Type Description messagestring Message stanza - Source:
 
- 
    <private, static> onExited(room)
- 
    
    
    Clean up after we exited a room.Parameters:Name Type Description roomstring Room jid - Source:
 
- 
    <private, static> onGroupchatMessage(message) → {boolean}
- 
    
    
    Handle incoming group chat message.Parameters:Name Type Description messagestring Message stanza - Source:
 Returns:True on success- Type
- boolean
 
- 
    <private, static> onPresence(event, from, status, presence)
- 
    
    
    Triggered on incoming presence stanzas.Parameters:Name Type Description eventfromstring Jid statusinteger Online status between 0 and 5 presencestring Presence stanza - Source:
 
- 
    <static> onPresenceError(event, from, presence) → {Boolean}
- 
    
    
    Handle group chat presence errors.Parameters:Name Type Description eventfromstring Jid presencestring Presence stanza - Source:
 Returns:Returns true on success- Type
- Boolean
 
- 
    <static> postReason(room, xdata)
- 
    
    
    Extract reason from xdata and if available post it to room.Parameters:Name Type Description roomstring Room jid xdatajQuery Xdata - Source:
 
- 
    <static> removeMember(room, nickname)
- 
    
    
    Remove member from room member list.Parameters:Name Type Description roomstring Room jid nicknamestring Nickname - Source:
 
- 
    <static> scrollMemberListBy(room, offset)
- 
    
    
    Scroll or update member list position.Parameters:Name Type Description roomstring Room jid offsetinteger =0: update position; >0: Scroll to left; <0: Scroll to right - Source:
 
- 
    <static> showJoinChat(r, p)
- 
    
    
    Open join dialog.Parameters:Name Type Argument Description rstring <optional> 
 room jid pstring <optional> 
 room password - Source:
 
- 
    <static> showRoomConfiguration(room)
- 
    
    
    Request and show room configuration.Parameters:Name Type Description roomstring room jid - Source: