For the question of scoket.io, ask for help!

  node.js, question
ponds = {
 '111111': 'XOaXjKdCp47EthMK_72J',
 '222222': 'OxVikBm83-iO7hjZ_72L',
 '123456': '3SnnjvG_P4w-qaDd_72K'
 bracket

First, when the client connects to the server, it will carry a password, and then I will judge whether there is this password in the server cache. If not, it will be added to the pool, ponds[code] = socket.id; If there is this password in the server cache, it will be taken out from the pool inside, and then I will get the previous socket.id, so I will have the socket.id and ponds[code]=>socket.id of the current user.
The current user joins a new room and uses socket.join(‘sroom’); No problem, but how can the socket.id taken out of the pool be instantiated into a socket and then call the join () room to enter the sroom?

When you built another array to save it, you came in:

users[code] = socket;