Messages to dashboard nodes when there are no connected clients

When a flow sends a message to a dashboard node, the node (on the server side) broadcasts the message to the node's widgets on all connected clients.
If there ae no connected clients, then unless the node saves the message in some datastore (and replays it whenever a client connects), the message will be lost.

There have been many discussions on the pros/cons of saving & replaying message trails, and it's not always practical.

I want to address this from a different angle: is there a way for a server node to tell if it has any connected clients?

Kinda using ui-control you could watch and record connections disconnections. However, a means of queiring this info would be useful I think.

If you're referring to access to this information within your third-party node, we have the information stored on the ui-base element.

On that, there is an object base.uiShared which then has .connections.

Thanks Joe, I remember investigating this object in the past. But how can I tell if at least one of the connected clients includes my node?

Are you thinking about the situation whereby some users would be connected, but viewing a page that didn't have the tabulator node on it? I'm not sure that'd be possible, as we don't track which sockets are on which page, nor have we had a need to.