First of all, thank you very much for sharing this example with Cloudflare Workers, it is a great start for building interaction-based apps.
Now, sometimes we may need to do additional operations in our command, which would exceed the limit of 3 seconds for an interaction response. To prevent the interaction from failing, we can defer it by sending a deferred channel message with source payload and then we can do our asynchronous magic under the hood and edit the response when we're ready.
Sadly, Cloudflare seems to stop any further asynchronous action after a response has been sent.
So, do you have any idea about how to defer an interaction or is it just not possible?
Thank you so much!
First of all, thank you very much for sharing this example with Cloudflare Workers, it is a great start for building interaction-based apps.
Now, sometimes we may need to do additional operations in our command, which would exceed the limit of 3 seconds for an interaction response. To prevent the interaction from failing, we can defer it by sending a deferred channel message with source payload and then we can do our asynchronous magic under the hood and edit the response when we're ready.
Sadly, Cloudflare seems to stop any further asynchronous action after a response has been sent.
So, do you have any idea about how to defer an interaction or is it just not possible?
Thank you so much!