I think this is the most relevant thread Help with spark.publish / spark.subscribe, please?
Although nowadays I’d rather use particle
instead of spark
and over time other member requests have lead to some additional features in that sketch like here
And as this was an evolving project, following the reasoning provided in the blurb might be a way to find into the why/how.