How do I disconnect my XMPPPY client object

前端 未结 2 2019
情深已故
情深已故 2021-01-14 07:45

Connecting to an XMPP server with XMPPPY is simple.

from xmpp.client import Client as XMPPClient

self.xmppClient = XMPPClient(\"jabber.foo.com\")
if not sel         


        
2条回答
  •  情深已故
    2021-01-14 08:12

    The xmpp.dispatcher.Dispatcher class has a disconnect() method. It's not obvious from the automatically generated documentation as it's loaded dynamically through the PlugIn mechanism, but you can use it on any CommentClient object.

提交回复
热议问题