I am new to node.js and trying to develop group chat using node.js and socket.io. I can do group chat and manage data in the system.
Now the problem with me is offline users who are not connected to the Internet. I have this user's connection thread, and as if I am receiving receiverUserSocket.emit ("sendMsg", data), there is no way to check whether this user received a message or not. Yes, there is a .on event ("disconnect"), but I get a delay of about 30-40 seconds.
Is it possible to indicate that the user to whom we want to send a message is online or offline.
source share