Handling webhook revocation

I feel like im missing some obvious docs that mention this. The docs mention that subscriptions do not expire but are revoked. If the webserver handling the requests from twitch was to go offline for long enough time for the subscriptions to be revoked. What is the best practice on resubscribing in this case?

My first instinct is to just get all of the events you subscribe to and then unsubscribe from all of them (assuming they are invalid) and then send another sub request. But is this required? if i was to send another sub request with the same parameters will it override the old now revoked subscription? I dont see any way of refreshing or “reconnecting” to a revoked sub.

In fewer words. What is the best way to resubscribe to an event after my webserver is offline for an extended time and not take up unnecessary subscription limits?

That seems sensible

Or jsut try to create everything and ride the 4xx already exists errors

It’s all a question of which is quick enough? Checking whats active and diffing to see what oyu need to make or just try to make everything

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.