Question

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 documentation or examples about implementing it with xmpppy.

Was it helpful?

Solution

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)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top