[JDEV] PHP recieve messages

Robert Norris rob at nauseum.org
Mon Sep 10 19:47:44 CDT 2001


> containing the messages. There is no way to know how many such messages 
> are queued up, so the only thing to do is to open the connection and 
> wait "a while" and hope you got them all. (Unless the server is really 
> overloaded, you should receive them all within a second or two.) 

(Gratuitous plug follows.)

Unless the server has mod_pending installed, in which case you can
query the number of waiting messages, and then if there are any, send
presence to force the server to give them to you.

http://cataclysm.cx/jabber/mod_pending.html

Rob.

-- 
Robert Norris                                          <rob at nauseum.org>
1024D/FC18E6C2        6FBF 098A A3F2 A728 490F  7743 59BD 7767 FC18 E6C2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20010911/edc35d08/attachment-0002.pgp>


More information about the JDev mailing list