List,
Happy to announce the availability of the Mediator2 module [1].
It is an implementation of the Mediator pattern for Lua. It is based of the original (but now abandoned) module by Olivine Labs [2].
I specifically needed a module to handle incoming MQTT messages, hence I needed to extend the module to support wildcards. But after going over the code it had several bugs and had written I-am-a-javascript-port all over it. So this version is not compatible with the original it has several breaking changes in its API.
Installation is easiest using LuaRocks:
> luarocks install mediator2
All comments are welcome!
Thijs
docs:
https://tieske.github.io/mediator2/
[1]:
https://github.com/Tieske/mediator2
[2]:
https://github.com/Olivine-Labs/mediator_lua