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 ?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
Hi. Well I have a medium post link.medium.com/2x8UusXDhbb about socket.io up and rooms. I think you should clone repo and try.