Added socket.io-chat server logic.