Hi Doug, On Wed, Sep 22, 2010 at 4:38 PM, Doug Kaye <[email protected]> wrote: > Your message points out something I've been confused about that > doesn't appear to be address in the protocol spec. > > What's the "right" way to subscribe to notifications long-term? We've > been two things that are somewhat at odds with one another: (1) > subscribe with expiration=0, (2) re-subscribe at every opportunity. > Obviously this is a case of overkill. > > For your hub, at least, what is recommended?
It's not clear in the spec? http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.3.html#anchor5 hub.mode=unsubscribe When it calls you back to verify, you'll see the hub.mode parameter is 'unsubscribe'. Return the challenge to confirm the subscription action along with 200. Return 404 to deny the subscription action (i.e., deny the unsubscription = stay subscribed). -Brett
