Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Strange PEP behavior!?

$
0
0

Hi,

 

I want to publish something using PEP (XEP-163).

 

E.g. User "111" publishes:

 

<iq id="123" type="set">

<pubsub xmlns="http://jabber.org/protocol/pubsub">

<publish node="http://jabber.org/protocol/tune"><item><tune xmlns="http://jabber.org/protocol/tune"><artist>AC/DC</artist></tune></item></publish>

</pubsub>

</iq>

 

User "222" is offline. When he comes online (with resource "test"), he receives TWO (!!) messages (which are slightly different though):

 

 

<message to="222@dev/test" from="111@dev" id="111@dev__222@dev__xyQI9">

<event xmlns="http://jabber.org/protocol/pubsub#event">

<items node="http://jabber.org/protocol/tune">

<item id="05fbd9e5-0f94-43a9-8ef4-839b5bf640ee12">

<tune xmlns="http://jabber.org/protocol/tune"><artist>AC/DC</artist></tune></item></items>

</event>

<delay xmlns="urn:xmpp:delay" stamp="2014-02-04T20:29:33.616Z"/>

</message>

 

 

<message to="222@dev" from="111@dev" id="111@dev__222@dev__be5KJ">

<event xmlns="http://jabber.org/protocol/pubsub#event">

<items node="http://jabber.org/protocol/tune">

<item id="05fbd9e5-0f94-43a9-8ef4-839b5bf640ee12" node="http://jabber.org/protocol/tune">

<tune xmlns="http://jabber.org/protocol/tune"><artist>AC/DC</artist></tune></item></items>

</event>

<delay xmlns="urn:xmpp:delay" from="dev" stamp="2014-02-04T20:29:33.618Z"/>

<x xmlns="jabber:x:delay" from="dev" stamp="20140204T20:29:33"/>

</message>

 

 

I don't think this is normal behavior, I can't find anything in the specification.

 

And on the other hand, if the user is online, he will only receive one message.

 

Comments?


Viewing all articles
Browse latest Browse all 10742

Trending Articles