You will have to send a message back when the message is read. There is no notion of when something is "read" in socket.io.
That's something you would have to invent in your own user interface and when you consider it read, you could send a message back to the sender that indicates it is now read. Unless each message requires some action to open it in order to read it (like an email often does), it's likely hard to know when it was actually "read" by the recipient. In typical chat programs, the message is just displayed automatically and you have no idea whether the recipient is looking at it or not.