Improve socket.io performance

Use the message rather than going back and loading from the server.