Skip to content

Detect when site upgrades to PuSH 0.4 #2

Description

@barnabywalters

E.G. kylewm.com used to not support PuSH 0.4 (i.e. did not have rel=hub and rel=self links on the topic page), and as such I have several fallback hub/polled subscriptions (for kylewm.com and kylewm.com/ due to poor deduping in shrewdness). Now kylewm.com does support PuSH 0.4, and taproot/subscriptions should seamlessly upgrade the subscription to a real PuSH 0.4 subscription.

The same code which handles this should also handle the case of hubs changing, as it’s effectively the same thing (i.e. changing from no hub (subscription using the fallback hub) to a PuSH hub).

Idea: create a listener on the ping event, applied by default which simply checks to see a topic has changed hub, and, if so, unsubscribe + subscribe to the topic again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions