This may not be the best solution if you don’t have that much experience with NodeJS but, I wrote a post on how to setup a basic HTTP server with Websocket support here. Here is a shameless plug for an HTML template guide as well. It will get you up and running with custom / dynamic HTML templates.