title: Check if node.js server is online?
body: <p>Is there a way to check if Node.js server is online from html/javascript? When connected I show the messages, but if server is down, nothing happens. Is there a way to do it?</p>
  
  <p>Thanks,
  Mika</p>
  
  <hr>
  
  <p>Yes, thanks for the answers, I used 'error' event on socket object to detect server down or outages so I'm assuming that if error is reported, server is down or client has internet connection problems.</p>