Known subclasses: wokkel.muc.MUCClientProtocol, wokkel.xmppim.PresenceProtocol

XMPP Presence base protocol handler.

This class is the base for protocol handlers that receive presence stanzas. Listening to all incoming presence stanzas, it extracts the stanza's type and looks up a matching stanza parser and calls the associated method. The method's name is the type + Received. E.g. availableReceived. See PresenceProtocol for a complete example.

Class Variable presenceTypeParserMap Maps presence stanza types to their respective stanza parser classes (derived from Stanza). (type: dict)
Method connectionInitialized The XML stream has been initialized.
Method _onPresence Called when a presence stanza has been received.

Inherited from XMPPHandler:

Method __init__ Undocumented
Method setHandlerParent Set the parent of the handler.
Method disownHandlerParent Remove the parent of the handler.
Method makeConnection A connection over the underlying transport of the XML stream has been established.
Method connectionMade Called after a connection has been established.
Method connectionLost The XML stream has been closed.
Method send Send data over the managed XML stream.
Method request Send an IQ request and track the response.
presenceTypeParserMap =
Maps presence stanza types to their respective stanza parser classes (derived from Stanza). (type: dict)
def connectionInitialized(self): (source)

The XML stream has been initialized.

Can be overridden to perform work after stream initialization, e.g. to set up observers and start exchanging XML stanzas.

def _onPresence(self, element): (source)

Called when a presence stanza has been received.

API Documentation for wokkel, generated by pydoctor at 2018-12-06 14:45:46.