I have apache2 serving the page to users (its a PHP page). And then I have javascript connecting to the nodejs server.js file (on port 8443) And using socket.io to serve inf