Answer the question
In order to leave comments, you need to log in
Pitfalls in chat development. How to decide?
I write a chat on node+socket.io.
I am writing for the first time. All the manuals superficially describe the very principle of message passing, but when I got to the implementation, I ran into several questions. Below are the questions themselves and the options for solving them that came to my mind.
A little about how I organized everything:
Answer the question
In order to leave comments, you need to log in
Question #1 The second solution is suitable and universal. Since, for example, when opening a VKontakte page and finding unread messages there, we don’t hear notification sounds for each of them?)
Question #2. Why pull ajax when you plan to use sockets anyway? The list of chats can be returned by the onconnect event.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question