Hi, there.
Did you using all function node features?
Today I found solution how to make function node send specified message without any input msg.
Just try this:
[{"id":"9c663e52.a1985","type":"function","z":"696d2510.1151ac","name":"Create object","func":"var test_obj = {\n SendMsg: function( data ) {\n node.send( { payload: data } );\n }\n}\n\nflow.set( \"test_obj\", test_obj );","outputs":1,"noerr":0,"x":450,"y":120,"wires":[["2c0153c5.7146ac"]]},{"id":"1113bab7.140835","type":"inject","z":"696d2510.1151ac","name":"Init first","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":250,"y":120,"wires":[["9c663e52.a1985"]]},{"id":"3196b4a6.b5439c","type":"inject","z":"696d2510.1151ac","name":"Send msg 1","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":160,"wires":[["ffd9247d.e2e218"]]},{"id":"ffd9247d.e2e218","type":"function","z":"696d2510.1151ac","name":"","func":"var test_obj = flow.get( \"test_obj\" );\ntest_obj.SendMsg( \"Hello\" );","outputs":1,"noerr":0,"x":430,"y":160,"wires":[[]]},{"id":"2c0153c5.7146ac","type":"debug","z":"696d2510.1151ac","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":630,"y":120,"wires":[]},{"id":"50297e0d.a10f7","type":"inject","z":"696d2510.1151ac","name":"Send msg 2","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":200,"wires":[["bb1fcb91.7c3ed8"]]},{"id":"bb1fcb91.7c3ed8","type":"function","z":"696d2510.1151ac","name":"","func":"var test_obj = flow.get( \"test_obj\" );\ntest_obj.SendMsg( \"World\" );","outputs":1,"noerr":0,"x":430,"y":200,"wires":[[]]}]
This is bug, or feature? Im newbee in JS scripting, and see this useful.
I want using it in my projects, but I must be shure, this feature will not be depricated in future.