-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/1/09 5:55 AM, Peter Saint-Andre wrote:
> On 10/1/09 5:43 AM, Robin Collier wrote:
> 
>>> Date: Thu, 1 Oct 2009 10:30:30 +0200
>>> From: [email protected]
>>> To: [email protected]
>>> Subject: [PubSub] Transient subscriptions
>>>
>>> Peter Saint-Andre wrote:
>>>>> 1) Transient subscriptions (which have been put forward before)
>> setting
>>>> Yes, we've discussed that on the list and I think we have consensus to
>>>> add it. The only open issue is: does this need to be a node option as
>>>> well as a subscription option?
>>> I think that would make sense.
>>>
>> I agree with that.
> 
> OK, I will add a node configuration option as well in the next few days.
> Naturally, the service would need to make sure that the node is also
> configured for presence-based delivery.

Added...

***

12.4 Temporary Subscriptions

An implementation MAY enable an entity to subscribe to a node
temporarily, i.e., only for as long as the subscriber is online in its
current presence session. To subscribe temporarily, the subscriber MUST
set the "pubsub#expire" subscription configuration option to a literal
value of "presence".

Example 214. A Temporary Subscription

<iq type='set'
    from='[email protected]/barracks'
    to='pubsub.shakespeare.lit'
    id='lease3'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <options node='princely_musings' jid='[email protected]'>
        <x xmlns='jabber:x:data' type='submit'>
          <field var='FORM_TYPE' type='hidden'>

<value>http://jabber.org/protocol/pubsub#subscribe_options</value>
          </field>
          ...
          <field var='pubsub#expire'><value>presence</value></field>
          ...
        </x>
     </options>
  </pubsub>
</iq>


The service will then automatically cancel the subscription when it
receives presence of type "unavailable" from the subscriber.

An implementation MAY enable the node owner to force all subscriptions
to be temporary, which is useful for nodes that are also configured to
use presence-based delivery. This setting uses the "pubsub#tempsub" node
configuration option set to a value of true.

Example 215. Owner sets all subscriptions to temporary

<iq type='set'
    from='[email protected]/elsinore'
    to='pubsub.shakespeare.lit'
    id='configtemp'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <configure>
      <x xmlns='jabber:x:data' type='submit'>
        <field var='FORM_TYPE' type='hidden'>
          <value>http://jabber.org/protocol/pubsub#node_config</value>
        </field>
        <field var='pubsub#tempsub'><value>true</value></field>
      </x>
    </configure>
  </pubsub>
</iq>


***


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrFBvkACgkQNL8k5A2w/vwTPwCfW0djgqq74ihxJjDgSqF149Oh
478Anj4CuoBrYNFLdgk55uFp8NVi0q0p
=JGnM
-----END PGP SIGNATURE-----

Reply via email to