@Natanox
Please please please check documentation for actual syntax and appropriate calling of functions. I wrote this on my phone super quickly.
Check the docs for Custom Signals, as well as functions emit() and connect()
Hopefully the logic makes some sense. It has been working great for me!
Hope that helps!