title: How to embed multiple instances of node-red in node app
body: <p>Node-red documentation here gives info on how to embed a single node-red app inside a nodejs app - <a href="http://nodered.org/docs/embedding" rel="nofollow">http://nodered.org/docs/embedding</a></p>
  
  <p>We wanted our site's users to have their own node-red's on different ports for some custom programming. Is it possible to embed multiple node-red apps in a nodejs applicaiton?</p>
  
  <p>I tried repeating same steps for embedding by changing settings of each call with different port but only one time it is created. First time, a node-red instance is created based on settings. Next time we call, we get port in use. I assume this has something to do with node require doing caching and all... Any workaround for this issue?</p>