XMPP External Component service.

This service is a XMPP stream manager that connects as an External Component to an XMPP server, as described in XEP-0114.

Method __init__ Construct a stream manager.
Method initializationFailed Called when stream initialization has failed.
Method startService Start the service and connect to the server.
Method stopService Stop the service, close the connection and prevent reconnects.
Method _authd Called when stream initialization has completed.
Method _getConnection Create a connector that connects to the server.

Inherited from StreamManager:

Instance Variable xmlstream currently managed XML stream (type: XmlStream)
Instance Variable logTraffic if true, log all traffic. (type: bool)
Instance Variable timeout Default IQ request timeout in seconds. (type: int)
Method addHandler Add protocol handler.
Method send Send data over the XML stream.
Method request Send an IQ request and track the response.
Instance Variable _initialized Whether the stream represented by xmlstream has been initialized. This is used when caching outgoing stanzas. (type: bool)
Instance Variable _packetQueue internal buffer of unsent data. See send for details. (type: list)
Instance Variable _reactor A provider of IReactorTime to track timeouts.
Method _connected Called when the transport connection has been established.
Method _disconnected Called when the stream has been closed.
Method _onIQResponse Handle iq response by firing associated deferred.

Inherited from XMPPHandlerCollection (via StreamManager):

Instance Variable handlers List of protocol handlers. (type: list of objects providing IXMPPHandler)
Method __iter__ Act as a container for handlers.
Method removeHandler Remove protocol handler.

Inherited from Service:

Method __getstate__ Undocumented
Method setName Set the name of the service.
Method setServiceParent Set the parent of the service. This method is responsible for setting the parent attribute on this service (the child service).
Method disownServiceParent Use this API to remove an IService from an IServiceCollection.
Method privilegedStartService Do preparation work for starting the service.
def __init__(self, host, port, jid, password): (source)

Construct a stream manager.

ParametersfactoryThe stream factory to connect with.
reactorA provider of IReactorTime to track timeouts. If not provided, the global reactor will be used.
def _authd(self, xs): (source)

Called when stream initialization has completed.

This replaces the send method of the XmlStream instance that represents the current connection so that outgoing stanzas always have a from attribute set to the JID of the component.

def initializationFailed(self, reason): (source)

Called when stream initialization has failed.

Stop the service (thereby disconnecting the current stream) and raise the exception.

def startService(self): (source)

Start the service and connect to the server.

def stopService(self): (source)

Stop the service, close the connection and prevent reconnects.

def _getConnection(self): (source)

Create a connector that connects to the server.

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