It could be useful to have a way to set up a reverse webhook. I was thinking something like Devvit.registerWebhookListener(name: string, handler: (content: string) => void). This would register the given function as the handler for a webhook with the given name, and also add an entry to the app settings page containing a unique webhook URL that can be copied to be used on the other end: {name}: https://webhook.reddit.com/{unique id}.
It could be useful to have a way to set up a reverse webhook. I was thinking something like Devvit.registerWebhookListener(name: string, handler: (content: string) => void). This would register the given function as the handler for a webhook with the given name, and also add an entry to the app settings page containing a unique webhook URL that can be copied to be used on the other end: {name}: https://webhook.reddit.com/{unique id}.