If you get a new message through socketIO connection you can render it on your screen. But how do you ensure that the users keeps track of which users he has seen or has not