tacking users sockets in a social network with nodejs and socket.io

sihamza

Jouini Hamza

Posted on November 9, 2020

tacking users sockets in a social network with nodejs and socket.io

So i am creating a social network for my university , this made me think how to track users with multiple socket like facebook does when you send a message it will pop up on all devices and browser tabs , this is easy if you keep track of user's sockets in array but isn't that how rooms work , so instead of doing that you just create a room for every user but i am wondering if is that the best practice ?

💖 💪 🙅 🚩
sihamza
Jouini Hamza

Posted on November 9, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related