开发者

How can i get a list of all MUC 's in XMPP server using python xmpppy?

开发者 https://www.devze.com 2023-03-06 02:00 出处:网络
I need to get a list of MUC\'s in a XMPP server (OpenFire). I have read about XEP 0030 and service discovery, but can not find docu开发者_如何转开发mentation or examples about implementing it with xmp

I need to get a list of MUC's in a XMPP server (OpenFire). I have read about XEP 0030 and service discovery, but can not find docu开发者_如何转开发mentation or examples about implementing it with xmpppy.


Look in xmpp/features.py, and try code like this:

for i in discoverItems(conn, jid.getDomain()):
    (ids, features) = discoverInfo(conn, i.jid)
    if NS_MUC in features:
        print i.jid

(warning: completely untested)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号