C
C
CartmanGui2014-11-12 00:05:52
Node.js
CartmanGui, 2014-11-12 00:05:52

How to track that there is a new unread message?

For the site, you need to make a messaging system based on a chat, like in VK. I already did all this through socket.io using rooms, but I stopped at the implementation of receiving a notification to users that they have a new unread message if they are not in a chat (in a specific room). What is the best way to implement the definition of what is a new unread message?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question