Well it works *most* of the time...<br><br>If I sign-out a node subscriber (by closing the tab for my strophe-based client), and publish another item to that node right away, the subscriber may not get the published item when he signs on again.<br>
<br>I really need reliable delivery here -- unfortunately the pubsub spec has iq notifications only for presence-based delivery nodes...<br><br>Starting to wonder if I should have tried an MQ service instead of xmpp pubsub...<br>
<br><br><div class="gmail_quote">On Thu, Jan 28, 2010 at 12:14 PM, Liam <span dir="ltr"><<a href="mailto:ejabberd@networkimprov.net">ejabberd@networkimprov.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This worked, thanks!<br><br><field var='pubsub#notification_type'><value>normal</value></field><div class="im"><br><field var='pubsub#send_last_published_item'><value>never</value></field><br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Tue, Jan 26, 2010 at 1:59 PM, Liam <span dir="ltr"><<a href="mailto:ejabberd@networkimprov.net" target="_blank">ejabberd@networkimprov.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think send_last_published_item = on_sub_and_presence is wrong for my case... Multiple items may be published while a subscriber is offline. Also I don't want a new subscriber to get previously published items...<br>
<br>
I'd expect the behavior I see only if presence_based_delivery is true, and for this node it's false, the default.<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
Try with :<br><field var='pubsub#send_last_published_item' type='list-single'><br> <value>on_sub_and_presence</value><br></field><br></blockquote><div><div></div><div><br>
<br><div class="gmail_quote">On Tue, Jan 26, 2010 at 12:35 PM, Liam <span dir="ltr"><<a href="mailto:ejabberd@networkimprov.net" target="_blank">ejabberd@networkimprov.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Using 2.1.1 on WinXP...<br><br>Publishing to a node configured as follows, the subscriber gets the item if online, but if offline doesn't get the item on next login. Shouldn't the item go to the user's offline queue?<br>
<br>Subscriber creates and subscribes to the node:<br><br><iq from='me@localhost/reprev' to='pubsub.localhost'<br> type='set' id='8776' xmlns='jabber:client'><br> <pubsub xmlns='<a href="http://jabber.org/protocol/pubsub" target="_blank">http://jabber.org/protocol/pubsub</a>'><br>
<create node='me'/><br> <configure><x xmlns='jabber:x:data' type='submit'><br> <field var='FORM_TYPE' type='hidden'><value><a href="http://jabber.org/protocol/pubsub#node_config" target="_blank">http://jabber.org/protocol/pubsub#node_config</a></value></field><br>
<field var='pubsub#notify_retract'><value>0</value></field><br> <field var='pubsub#persist_items'><value>0</value></field><br> <field var='pubsub#publish_model'><value>open</value></field><br>
<field var='pubsub#access_model'><value>whitelist</value></field><br> <field var='pubsub#send_last_published_item'><value>never</value></field><br>
</x></configure></pubsub></iq><br><br><iq from='me@localhost/reprev' to='pubsub.localhost'<br> type='set' id='8777' xmlns='jabber:client'><br> <pubsub xmlns='<a href="http://jabber.org/protocol/pubsub" target="_blank">http://jabber.org/protocol/pubsub</a>'><br>
<subscribe node='me' jid='me@localhost/reprev'/><br></pubsub></iq><br><br>
Relevant config:<br>
{mod_offline, []},<br>
{mod_pubsub, [ % requires mod_caps<br>
{access_createnode, pubsub_createnode},<br>
{ignore_pep_from_offline, true},<br>
{last_item_cache, false},<br>
{plugins, ["flat", "hometree", "pep"]}<br>
]},<br><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>