XMPP Transport

class vumi.transports.xmpp.xmpp.TransportPresenceClientProtocol(initialized_callback, *args, **kwargs)

Bases: wokkel.xmppim.PresenceClientProtocol

A custom presence protocol to automatically accept any subscription attempt.

class vumi.transports.xmpp.xmpp.XMPPTransport(options, config=None)

Bases: vumi.transports.base.Transport

XMPP transport.

Configuration parameters:

  • host (str) – The host of the XMPP server to connect to.
  • port (int) – The port on the XMPP host to connect to.
  • debug (bool) – Whether or not to show all the XMPP traffic. Defaults to False.
  • username (str) – The XMPP account username
  • password (str) – The XMPP account password
  • status (str) – The XMPP status ‘away’, ‘xa’, ‘chat’ or ‘dnd’
  • status_message (str) – The natural language status message for this XMPP transport.
  • presence_interval (int) – How often (in seconds) to send a presence update to the roster.
  • ping_interval (int) – How often (in seconds) to send a keep-alive ping to the XMPP server to keep the connection alive. Defaults to 60 seconds.