The community member has a use-case where users of their app can initiate a new crawl from the website's front-end. They would like to be able to provide real-time feedback on the status of the crawl to the users, such as "Actor is running", "Actor completed: 1 succeeded, 1 failed", or "Actor failed". Another community member suggests that the best approach is to poll the run endpoint at regular intervals (e.g., every 5 seconds) using the GET run via API or API client.
I have a use-case where users of my app are able to initiate a new crawl from my website's front-end. I'd like to be able to pass a "crawl status" back to the user so they don't feel like their waiting in the dark for the crawl to complete.
Is there a way I can create a websock to a running Actor to provide my users with real-time feedback on the status of the Actor run? All I need is something like "Actor is running" | "Actor completed: 1 succeeded, 1 failed" | "Actor failed"