Node.send direct/broadcast to LinkIn type of receiver instead of port out

Is it possible to pass a callback into a node that redirects the port out to another node (like a IinkIn event receiver)? I don't mean create a LinkOut that takes the message from the node, or a switch that routes it explicitly. I am wondering if you can dynamically pass the callback into the node via the message to include the routing within the nodes input event?

     n.on("input", msg => {
           msg.payload = doABunchOfWork();

           // instead of this
           n.send(msg);   // <- which just ports out 

           // something like 
           n.send(msg.targetsOrReceiver, msg); // <- not likely the method but ideally the idea is it doesn't just port out rather it emulates the link In-Out broadcast/receiver functionality
     });

Thanks,
Justin

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.