A pretty good tutorial for socket.io