I just went ahead and pushed some of the work I’ve been doing:
I hadn’t pushed it previously as I’m not ready for release of this module yet, but this should give you a good idea of what I’m doing.
a module registers itself:
with a message being sent as so:
my plan is to expand it before actual release, to include message tags, but it works fairly well as-is.
it uses a mutex guard around the vector that stores the data, leaving only the most recent message from each publisher. any subscriber can get a copy of the most recent messages.