Wondering if it's possible to start a flow when the UI dashboard is loaded on a browser?
I want to call an API when the dashboard loads up, so that it can grab the latest status of something, and then display the result on the dashboard asynchronously. Note that I do not mean when Nodered itself loads (which can be done with an Inject node), I mean when the browser navigates to and loads the /ui route.
In addition, it is possible to see how many client browsers are connected? There's another API that I want to call every X minutes while users are connected, but only when there is 1 or more users currently on the dashboard /ui page
No, the dashboard is not a multi user dashboard, so you would need to store the connected users in context and remove them when disconnected. You can then reference the context store to see how many are connected.