Basic socket.io tutorial -- thanks to Daniel Nill