Will XMPP4MOZ drop/skip processing messages if they come at the same time?

0 views
Skip to first unread message

sylver

unread,
Mar 5, 2009, 3:51:12 AM3/5/09
to SamePlace/xmpp4moz
Hi,

I understand that we can create/register different channels incoming
XMPP messages or presence, like so:

==================================================================

var ns_1 = "custom:namespace:1";
var ns_2 = "custom:namespace:2";

channel.on({ event: 'message',
direction: 'in',
stanza: function(s) {
return s.body.length() > 0 && s.@type != 'error';
}
},function(message) {
processRegularMessage(message);
}
);


channel.on({ event: 'message',
direction: 'in',
stanza: function(s) {
return s.ns_1::x.length() > 0 && s.@type != 'error';
}
},function(message) {
processMsgWithNs1(message);
}
);



channel.on({ event: 'message',
direction: 'in',
stanza: function(s) {
return s.ns_2::x.length() > 0 && s.@type != 'error';
}
},function(message) {
processMsgWithNs2(message);
}
);

==================================================================

My question is, will XMPP4MOZ queue incoming messages (on same or
different channel) if that message came while the browser is
processing a message that comes before it? or will XMPP4MOZ drop it?

Thanks :D

Massimiliano Mirra

unread,
Mar 9, 2009, 1:35:21 PM3/9/09
to same...@googlegroups.com
> My question is, will XMPP4MOZ queue incoming messages (on same or
> different channel) if that message came while the browser is
> processing a message that comes before it? or will XMPP4MOZ drop it?

Modulo bugs, no message is dropped.

-m

Reply all
Reply to author
Forward
0 new messages