wokkel.component.Component(StreamManager, service.Service)class documentation
wokkel.componentView Source (View In Hierarchy)
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:
|Instance Variable||logTraffic||if true, log all traffic. (type:
|Instance Variable||timeout||Default IQ request timeout in seconds. (type:
|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
|Instance Variable||_packetQueue||internal buffer of unsent data. See
|Instance Variable||_reactor||A provider of
|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.|
|Instance Variable||handlers||List of protocol handlers. (type:
|Method||__iter__||Act as a container for handlers.|
|Method||removeHandler||Remove protocol handler.|
Inherited from Service:
|Method||setName||Set the name of the service.|
|Method||setServiceParent||Set the parent of the service. This method is responsible for setting
|Method||disownServiceParent||Use this API to remove an
|Method||privilegedStartService||Do preparation work for starting the service.|
Construct a stream manager.
|Parameters||factory||The stream factory to connect with.|
|reactor||A provider of |
Called when stream initialization has completed.
This replaces the
send method of the
instance that represents the current connection so that outgoing stanzas
always have a from attribute set to the JID of the component.
Called when stream initialization has failed.
Stop the service (thereby disconnecting the current stream) and raise the exception.
Start the service and connect to the server.
Stop the service, close the connection and prevent reconnects.
Create a connector that connects to the server.