Answer the question
In order to leave comments, you need to log in
What is better to use in socket.io when using multiple tabs?
Tell me, what is better to use when the user has many tabs open? rooms or user card?
Under the user map, I'm talking about code like this: (read more here stackoverflow )
var socketMap = {};
if(!socketMap[userId]) socketMap[userId] = [];
socketMap[userId].push(socket);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question