Send message
Message: function( roomJid, msg, type )
Acts on room, admin and server messages and notifies the view if required.
Message: function( msg )
Acts on various message events (subject changed, private chat message, multi-user chat message) and notifies view.
Message: function( msg )
Notify all of its observers of a certain event.
self.notifyObservers = function( key, arg )
Notify private user chats if existing
notifyPrivateChats: function( user, type )
Called when a new room gets added
onAdd: function( args )
Called when receiving admin messages
onAdminMessage: function( args )
Called when authentication fails
onAuthfail: function()
Autoscroll control event handler.
onAutoscrollControlClick: function()
Window blur event handler.
onBlur: function()
Called after a room has been left/closed
onClose: function( args )
Called when a user clicks on the action menu arrow.
onContextMenu: function( args )
Called when client disconnects
onDisconnect: function()
Window focus event handler.
onFocus: function()
Called when a room gets hidden
onHide: function( args )
Display info message.
onInfoMessage: function( roomJid, subject, message )
Sound play event handler.
onPlaySound: function()
Called when presence of user changes (kick, ban)
onPresenceChange: function( args )
Scrolls to the latest message received/sent.
onScrollToBottom: function( roomJid )
When autoscroll is off, the position where the scrollbar is has to be stored for each room, because it otherwise goes to the top in the message window.
onScrollToStoredPosition: function( roomJid )
Called after a new message has been shown
onShow: function( args )
Called when a room gets shown
onShow: function( args )
Sound control click event handler.
onSoundControlClick: function()
Status message control event handler.
onStatusMessageControlClick: function()
Called when a subject of a room gets changed
onSubjectChange: function( args )
Called after a user have been added to the roster
onUpdate: function( args )
window.onbeforeunload event which disconnects the client from the Jabber server.
self.onWindowUnload = function()
Opens a new private room
open: function( roomJid, roomName, switchToRoom, isNoConferenceRoomJid )
Play sound (default method).
playSound: function()
Sends a request for presence
Presence: function( attr )
Acts on a presence event
Presence: function( msg )
Acts on various presence messages (room leaving, room joining, error presence) and notifies view.
Presence: function( msg )
Acts when a presence of type error has been retrieved.
PresenceError: function( msg )
Acts on a privacy list event and sets up the current privacy list of this user.
PrivacyList: function( msg )
Acts when a privacy list error has been received.
PrivacyListError: function( msg )
(Overridden from Strophe.Connection.rawInput)
self.rawInput = function( data )
Reduce unread message count in window title by `num`.
reduceUnreadMessages: function( num )
Remove user from roster
this.remove = function( jid )
Remove the ignore icon to the roster item of the specified user
removeIgnoreIcon: function( roomJid, userJid )
Remove an existing ignore list.
RemoveIgnoreList: function()
Remove tab element.
removeTab: function( roomJid )
Update window title to show message count.
renderUnreadMessages: function( count )
Create new ignore privacy list (and reset the old one, if it exists).
ResetIgnoreList: function()
Sends a request for a roster
Roster: function()