Script widget send() function

If you need to send a message after receiving one, you have to do it from a custom module, the widgets won't let you do that.

the script is executed correctly seen in the console but the send function does nothing

This behavior is explained in the issue you linked.