Age | Commit message (Collapse) | Author |
|
Chat states may be set using:
msg['chat_state'].active()
msg['chat_state'].composing()
msg['chat_state'].gone()
msg['chat_state'].inactive()
msg['chat_state'].paused()
Checking a chat state can be done with either:
msg['chat_state'].getState()
msg['chat_state'].name
When a message with a chat state is receieved, the following events
may occur:
chatstate_active
chatstate_composing
chatstate_gone
chatstate_inactive
chatstate_paused
where the event data is the message stanza. Note that currently these
events are also triggered for messages sent by SleekXMPP, not just those
received.
|
|
|
|
|
|
should look into xmpp.plugin dict
|
|
|
|
|
|
|
|
For example:
iq.reply().error().setPayload(something.xml).send()
|
|
|
|
|
|
All registered handlers for the event which use the given function will
be removed.
Using this method allows agents to reconfigure their behaviour on the fly
without needing to add extra state information to event handling functions.
|
|
|
|
|
|
|
|
|
|
|
|
test coverage
|
|
|
|
|
|
|
|
stanzas
|
|
|
|
|
|
|
|
|
|
basexmpp.send when using xml mask waiting
|
|
stanzas instead of ElementTree
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|