sylver
unread,Mar 5, 2009, 3:51:12 AM3/5/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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