Dummy XMPP subprotocol handler to count the methods are called on it.

Method __init__ Undocumented
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 connectionInitialized The XML stream has been initialized.
Method connectionLost The XML stream has been closed.

Inherited from XMPPHandler:

Method setHandlerParent Set the parent of the handler.
Method disownHandlerParent Remove the parent of the handler.
Method send Send data over the managed XML stream.
def __init__(self):
def makeConnection(self, xs):

A connection over the underlying transport of the XML stream has been established.

At this point, no traffic has been exchanged over the XML stream given in xs.

This should setup xmlstream and call connectionMade.

def connectionMade(self):

Called after a connection has been established.

Can be overridden to perform work before stream initialization.

def connectionInitialized(self):

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 connectionLost(self, reason):

The XML stream has been closed.

This method can be extended to inspect the reason argument and act on it.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.