In need to know, how "user a" can send "user b" a message using socketIo in nodejs.
Reading the documentation of socketIo, there is a clear explanation of not using the id of an socket as an userid, because after every reconnection the socketid is regenerated.
But reading this article on stackoverflow and other tutorials telling me the opposite.
So what is the correct way?
Thanks