Skip to content

Deferring interactions #30

@DTrombett

Description

@DTrombett

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!

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