Get Daemon
Introduction
The Composer provides a pointer to the daemon it deploys.
You can acquire the reference by calling function getDaemon and pass the daemon name to it as a parameter.
Usage
Get Daemon Example
//assuming that the daemon name is "myDaemon" and provided in config.js //deploy the daemon composer.deploy(__dirname + "/.config.js", function (error) { //call get daemon and acquire a reference to the daemon deployed. var daemon = composer.getDaemon("myDaemon"); console.log(daemon) });