Update chats based on socket.io