feat: Replace WebHookSubscription2021 with WebHookChannel2023

This commit is contained in:
Joachim Van Herwegen
2023-04-21 15:47:33 +02:00
parent e9463483f4
commit d59a1595d5
19 changed files with 188 additions and 270 deletions

View File

@@ -2,7 +2,7 @@ import { fetch } from 'cross-fetch';
/**
* Subscribes to a notification channel.
* @param type - The type of the notification channel, e.g., "NOTIFY.WebHookSubscription2021".
* @param type - The type of the notification channel, e.g., "NOTIFY.WebHookChannel2023".
* @param webId - The WebID to spoof in the authorization header. This assumes the config uses the debug auth import.
* @param subscriptionUrl - The subscription URL to which the request needs to be sent.
* @param topic - The topic to subscribe to.