Topic-based Pub/Sub

I was wondering if anyone knew of topic-based publisher subscribing system that could be used in Unreal Engine (any C++ libraries would be appreciated too).

What I am thinking of is something almost identical to MQTT, except none of the messages are sent over the network - it’s all in app.