indieweb / chat.indieweb.org

https://chat.indieweb.org
Apache License 2.0
15 stars 7 forks source link

Allow WebSub subscriptions #32

Closed cweiske closed 6 years ago

cweiske commented 7 years ago

It would be nice if my search engine https://indiechat.search.cweiske.de/ could subscribe to updates on the main chat pages. This way we could get realtime indexing.

aaronpk commented 6 years ago

My plan is to set the hub and topic for the redirect URLs, but not for the URLs that contain day components. e.g. these URLs will all report a rel=self of https://chat.indieweb.org/dev/

All three of the above actually end up redirecting to e.g. https://chat.indieweb.org/dev/2017-11-30, which will not have WebSub discovery enabled.

When new entries are added to the log, the hub will notify subscribers that the topic https://chat.indieweb.org/dev/ has changed, the hub will fetch the page and follow the redirect to today's page, then deliver the full page to the subscribers.

Does that match your understanding of how you'd expect this to work?

cweiske commented 6 years ago

yes, that should work.