Basic socket.io taken from http://socket.io/#how-to-use