I'm running Mosquitto (latest). Is it possible to hook/define a "middleware processor" which executes between Mosquitto receiving a Publish from a client and sending the payload to subscribers, giving me the ability to manipulate the payload before it's sent out?
Normal Publish happens like this:
[Client publishes] ---> [Mosquitto receives the published payload] ---> [Mosquitto sends the payload to all subscribers]
I want to do this:
[Client publishes] ---> [Mosquitto receives the published payload] ===> [My arbitrary code executes to manipulate the payload] ===> [Mosquitto sends the payload to all subscribers]
Any tips appreciated.