Class Xmpp4Js.Chat.Chat

Defined in Chat.js

A chat is a series of messages sent between two users. Each chat has a unique thread ID, which is used to track which messages are part of a particular conversation. Some messages are sent without a thread ID, and some clients don't send thread IDs at all. Therefore, if a message without a thread ID arrives it is routed to the most recently created Chat with the message sender.


Constructor Summary
Xmpp4Js.Chat.Chat(chatMan, jid, thread)
           
 
Method Summary
close()
           Closes a conversation.
  createMessage(message)
           Creates a message associated with this chat session, including thread and to.
 Xmpp4Js.Jid getOutgoingJid()
           Returns the Jid of the message sender--obtained from the connection.
 Xmpp4Js.Jid getParticipant()
           Returns the Jid of the user the chat is with.
 String getThread()
           Returns the thread ID of the current chat.
sendMessage(msg)
           Send a message to the party in this message.
 
Constructor Detail

Xmpp4Js.Chat.Chat

Xmpp4Js.Chat.Chat(chatMan, jid, thread)

Method Detail

close

close()

createMessage

 createMessage(message)

getOutgoingJid

Xmpp4Js.Jid getOutgoingJid()

getParticipant

Xmpp4Js.Jid getParticipant()

getThread

String getThread()

sendMessage

sendMessage(msg)

Documentation generated by JsDoc Toolkit 1.4.1 on Tue Aug 26 2008 14:35:54 GMT-0500 (CDT)