Basic socket.io example from the documentation