Processing Unread Messages one at a time from a chat window

Hello Guys,
I am working on a indiamart website, where the customers just share there requirements in the indiamart chat window. I just need to process each and every unread messages one at a time.
Please help me with your valuable suggestions.