Skip to content
Discussion options

You must be logged in to vote

When the client submits a task, I'm assuming that task is added to a background process and you immediately return to the client.

At this point, the client won't know the status of the task. When the task is completed and notifies your webhook, the server doesn't have a way to let the client know it is completed.

There are a couple of ways to do this:

  • Use long-polling on the client that will open a request to the server to get the status and wait until it has completed. This is relatively simple, but requires the client to remain on the status polling page.
  • Use Web Sockets to notify the client when the status changes. Remix doesn't have built-in support for Web Sockets as this is part of…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sarimabbas
Comment options

Answer selected by sarimabbas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants