| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(chatMan, jid, thread)
Xmpp4Js.Chat.ChatManager chatMan
Xmpp4Js.Jid jid
String thread
| Method Detail |
close()
createMessage(message)
String message
Xmpp4Js.Packet.Message
Xmpp4Js.Jid getOutgoingJid()
Xmpp4Js.Jid
Xmpp4Js.Jid getParticipant()
Xmpp4Js.Jid
String getThread()
String The thread ID
sendMessage(msg)
Xmpp4Js.Packet.Message msg