Event Index¶
- changed_status
Data:
PresenceSource:
RosterItem
Triggered when a presence stanza is received from a JID with a show type different than the last presence stanza from the same JID.
- changed_subscription
Data:
PresenceSource:
BaseXMPP
Triggered whenever a presence stanza with a type of
subscribe,subscribed,unsubscribe, orunsubscribedis received.Note that if the values
xmpp.auto_authorizeandxmpp.auto_subscribeare set toTrueorFalse, and notNone, then SleekXMPP will either accept or reject all subscription requests before your event handlers are called. Set these values toNoneif you wish to make more complex subscription decisions.- chatstate_active
Data:
Source:
- chatstate_composing
Data:
Source:
- chatstate_gone
Data:
Source:
- chatstate_inactive
Data:
Source:
- chatstate_paused
Data:
Source:
- connected
Data:
{}Source:
XMLstream
Signal that a connection has been made with the XMPP server, but a session has not yet been established.
- connection_failed
Data:
{}orFailure Stanzaif availableSource:
XMLstream
Signal that a connection can not be established after number of attempts.
- disco_info
Data:
DiscoInfoSource:
xep_0030
Triggered whenever a
disco#inforesult stanza is received.- disco_items
Data:
DiscoItemsSource:
xep_0030
Triggered whenever a
disco#itemsresult stanza is received.- disconnected
Data:
{}Source:
XMLstream
Signal that the connection with the XMPP server has been lost.
- entity_time
Data:
Source:
- failed_auth
Data:
{}Source:
ClientXMPP,xep_0078
Signal that the server has rejected the provided login credentials.
- gmail_messages
Data:
IqSource:
gmail_notify
Signal that there are unread emails for the Gmail account associated with the current XMPP account.
- gmail_notify
Data:
{}Source:
gmail_notify
Signal that there are unread emails for the Gmail account associated with the current XMPP account.
- got_offline
Data:
PresenceSource:
RosterItem
Signal that an unavailable presence stanza has been received from a JID.
- got_online
Data:
PresenceSource:
RosterItem
If a presence stanza is received from a JID which was previously marked as offline, and the presence has a show type of ‘
chat’, ‘dnd’, ‘away’, or ‘xa’, then this event is triggered as well.- groupchat_direct_invite
Data:
MessageSource:
direct
- groupchat_invite
Data:
Source:
- groupchat_message
Data:
MessageSource:
xep_0045
Triggered whenever a message is received from a multi-user chat room.
- groupchat_presence
Data:
PresenceSource:
xep_0045
Triggered whenever a presence stanza is received from a user in a multi-user chat room.
- groupchat_subject
Data:
MessageSource:
xep_0045
Triggered whenever the subject of a multi-user chat room is changed, or announced when joining a room.
- killed
Data:
Source:
- last_activity
Data:
Source:
- message
Data:
MessageSource:
BaseXMPP
Makes the contents of message stanzas available whenever one is received. Be sure to check the message type in order to handle error messages.
- message_form
Data:
FormSource:
xep_0004
Currently the same as message_xform.
- message_xform
Data:
FormSource:
xep_0004
Triggered whenever a data form is received inside a message.
- muc::[room]::got_offline
Data:
Source:
- muc::[room]::got_online
Data:
Source:
- muc::[room]::message
Data:
Source:
- muc::[room]::presence
Data:
Source:
- presence_available
Data:
PresenceSource:
BaseXMPP
A presence stanza with a type of ‘
available’ is received.- presence_error
Data:
PresenceSource:
BaseXMPP
A presence stanza with a type of ‘
error’ is received.- presence_form
Data:
FormSource:
xep_0004
This event is present in the XEP-0004 plugin code, but is currently not used.
- presence_probe
Data:
PresenceSource:
BaseXMPP
A presence stanza with a type of ‘
probe’ is received.- presence_subscribe
Data:
PresenceSource:
BaseXMPP
A presence stanza with a type of ‘
subscribe’ is received.- presence_subscribed
Data:
PresenceSource:
BaseXMPP
A presence stanza with a type of ‘
subscribed’ is received.Data:
PresenceSource:
BaseXMPP
A presence stanza with a type of ‘
unavailable’ is received.- presence_unsubscribe
Data:
PresenceSource:
BaseXMPP
A presence stanza with a type of ‘
unsubscribe’ is received.- presence_unsubscribed
Data:
PresenceSource:
BaseXMPP
A presence stanza with a type of ‘
unsubscribed’ is received.- roster_update
Data:
RosterSource:
ClientXMPP
An IQ result containing roster entries is received.
- sent_presence
Data:
{}Source:
Roster
Signal that an initial presence stanza has been written to the XML stream.
- session_end
Data:
{}Source:
XMLstream
Signal that a connection to the XMPP server has been lost and the current stream session has ended. Currently equivalent to disconnected, but future implementation of XEP-0198: Stream Management will distinguish the two events.
Plugins that maintain session-based state should clear themselves when this event is fired.
- session_start
Data:
{}Source:
ClientXMPP,ComponentXMPPXEP-0078
Signal that a connection to the XMPP server has been made and a session has been established.
- socket_error
Data:
Socketexception objectSource:
XMLstream
- stream_error
Data:
StreamErrorSource:
BaseXMPP