Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

There are two ways mentioned in "Programming Jabber" sending an iq to jabber admin with just the server name and using the browse capability.

The admin capability is listed as legacy in the book and indicates browse is the way to go. The documentation for Net::Jabber lists browse capability as deprecated and points to the disco functionality.

Unfortunately I can't find any real documentation for disco. There seems to be some spec stuff but it uses terms like "node" without defining them. It seems to be some sort of tree of objects but the tree itself isn't documented under what I've read.

I've tried using the browse functions using just a jid but that doesn't seem to work. I've tried just the server as jid as indicated in the text of the book and server/admin as indicated in the actual code listing.

browsing entities covers using the browse function for this purpose. My expectation would be that assigning the return value of the browse function called with a jid of the server or maybe server/admin would return the online user list

There might be more to it. For instance I discovered that you needed to initialize a local presence DB and manually use a callback to update it with presence updates before you can query it. None of that was documented. The Net::Jabber module documentation is extremely sketchy and incomplete


In reply to Re^2: How to get online users with Net::Jabber by shaitand
in thread How to get online users with Net::Jabber by shaitand

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-23 22:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found