title: NodeJS function to check if a port is running or not?
body: <p>I am so new to NodeJS, but am trying to write a function that checks if a port to see if the port is live and running. </p>
  
  <p>IF the port is running/live do nothing and check again in 3 mins. 
  ELSE reset the area that the NODEjs code is in. </p>
  
  <p>thanks!! </p>