Updated session/socket.io conn to handle rank.

This commit is contained in:
rainbownapkin 2024-11-16 16:52:31 -05:00
parent a87d498756
commit be09c2457e
3 changed files with 5 additions and 2 deletions

View file

@ -79,6 +79,8 @@ module.exports.handleConnection = async function(io, socket){
//Get active channel
var activeChan = activeChannels.get(socket.chan);
console.log(socket);
//If we have more than one active connection
if(activeChan.userList.get(socket.user.user).length > 1){
//temporarily store list of active user sockets