> I suppose it could also be possible to use a callback set to fire off by > a timer in the case <message/> stanzas, to prevent it from flooding the > server. That was my main thoughts, to avoid penalty from the server.
The problem is that this timer is very dependent on network situation, type of server, type of client you are sending to, ... So, a timer will fail to be able to address this in a general way, and will only work optimally in some situations. With IQs, the target client and the network determine how fast you can send, so this works regardless of situation (except that a server might impose rules to kick you off if you send too much too fast, but that's something you'll never really be able to avoid). cheers, Remko
